Home » Java Technology

Java Programming

JAVA & CTue, 18 Sep 2007 19:27:00 GMT

sir,what is the basic difference between the syntax of C and Java?please tell? ...

Comments (11) | Promote | Bookmark

Changing the Semantics of the InsertTagMon, 05 May 2008 03:59:00 GMT

Ticket SB-21 [1] seeks to simplify the Tiles taglib API. First, it'sa given that this will break backwards compatibility. You can'treduce an API without breaking compatibility. But as long as we'reseeing this version of Tiles as a rework, I don't think it's aproblem. Als...

Comments (9) | Promote | Bookmark

Set color in TextArea for certain StringFri, 21 Sep 2007 11:00:00 GMT

I need to highlight some Strings in different color than the setForeground() in the TextArea. Is it possible and how can I accomplish it?Help is great appreciated.Anna...

Comments (8) | Promote | Bookmark

Arrays + HistogramFri, 21 Sep 2007 19:29:00 GMT

I'm trying to create a Java application that uses arrays to display a histogram. I'm new to Java and just got into arrays. I'm having a very rough time with this. My book does not show how to do this and I've found no additional backup on the net!?!?!?(My current code is posted below)Any ...

Comments (6) | Promote | Bookmark

Very strange performance problemMon, 05 May 2008 17:47:00 GMT

Hi allI have a problem with my Tapestry application. Its finished and it works,except, after I navigate for a while, the application slows down to a crawland becomes unusable. I click on links, I watch the browser status barslowly fill up and nothing happens. Tomcat doesn't show any errorsw...

Comments (6) | Promote | Bookmark

CloneNotSupportedExceptionFri, 21 Sep 2007 08:52:00 GMT

What would happen if Sun made CloneNotSupportedException a subclass of RuntimeException? Would that break existing code? It would certainly help solve problems like this one:http://forum.java.sun.com/thread.jsp?forum=31&thread=436678Since you can catch RuntimeExceptions, any existing code ...

Comments (5) | Promote | Bookmark

HTMLTue, 18 Sep 2007 11:37:00 GMT

Hi !I want to write a simple HTML browser in Java. But I've a problem with HTML code such as remarks (<!-- //-->). I use a JEditorKit to do that but it don't recognize remarks and draw them on the view. How is it possible to avoid this ?Thanks, Jerome ...

Comments (4) | Promote | Bookmark

How to make at Thread come out of sleepTue, 18 Sep 2007 23:43:00 GMT

Hi ,I am using Producer/consumer model where consumer thread is getting the data from message pool and displaying the on the screen and going to sleep for some time(display time).'during sleep period' if some message is added to que i want consumer thread to wake up immediately and start ...

Comments (3) | Promote | Bookmark

Problem with polymorphismus or what?Wed, 19 Sep 2007 18:59:00 GMT

I have a complex problem:Environment:1.: I have a DataSet class2.: A class ChatMsg inherits from DataSet3.: A function writeData(DataSet data). This function writs the variable data to a network stream4.: A function dummy(); This function generats a ChatMsg object and calls ...

Comments (3) | Promote | Bookmark

search a compare tool for java codeThu, 20 Sep 2007 11:05:00 GMT

hi alldoes anybody know a good tool to compare java code? (it should be free)...

Comments (2) | Promote | Bookmark

2 RegExp matching the same Strings?Wed, 19 Sep 2007 11:35:00 GMT

Hi, I am looking for a way to find out if the sets of the matching Strings for two Regular Expressions are not disjunct.Any suggestions?Thanks,Olav...

Comments (2) | Promote | Bookmark

correct way to build strutsTue, 06 May 2008 02:00:00 GMT

If the information here is correct:The build appears to be failing:[surefire] RunningJan 25, 2007 2:35:07 PM TypeDeterminerFactory <clinit>INF: Detected GTypeDeterminer, initializing itJan 25, 2007 2:35:08 PM getInstanceINF: Detected AnnotationXWorkConverter, initializing itJan 25, 2007 2:...

Comments (2) | Promote | Bookmark

Get file path from the clientSun, 18 May 2008 19:54:00 GMT

I am not a Java programmer and I have a question about a webprogramming scenario in Java. Can you please tell me if it is possiblefor the server to retrieve the file name and path of a file selected bya user on the client machine using the Save file dialog control builtinto Windows?Here's t...

Comments (2) | Promote | Bookmark

Applet BlackoutsSun, 11 Nov 2007 04:41:00 GMT

Hi All!Well, I'm trying to install a small Java applet on a client's site - and I've not worked with applets before. The applet itself is working fine, BUT when I try to place an animated gif as an overlay - which is allowed within the parameters - it sometimes produces a large solid...

Comments (2) | Promote | Bookmark

Dependency on a non-maven project?Need adviceSun, 11 May 2008 09:00:00 GMT

Hi,If my project depends on another project which is neither writen by myselfnor has a maven PM(there are tons of these type on www.sf.net), what is thebest way to include it in my project?Thanks...

Comments (2) | Promote | Bookmark

What is the importanceSat, 22 Sep 2007 03:43:00 GMT

abstract,polymorphism,interface, why they're applicable?can u give me a list of their differences? and their uses. coz i'm confusewhen or when will i use this keywords. ...

Comments (2) | Promote | Bookmark

sharing session information across tomcats on different machinesSun, 04 May 2008 12:50:00 GMT

Is there any possibility for tomcats on separate machines to sharesession information. I am looking into load balancing a few tomcatswith an apache in front of them. In other words, the setup will beinternet <-Apache(s) <-TomcatsIs it possible for this type of scenario to exist, and sesion...

Comments (1) | Promote | Bookmark

Pictures with click events?Wed, 19 Sep 2007 22:46:00 GMT

Hello people,I wanderd if somebody could please tell me in a very simple example how I can manage to get a picture to have button properties. My goal is to make something like memory with pictures. Please help, ohh and im not that good yet...

Comments (1) | Promote | Bookmark

a question about JAppletTue, 18 Sep 2007 13:50:00 GMT

Hi there,I import a jar in my JApplet program, but when I open the html file, a error message appeared in Java console,java.lang.NoClassDefFoundError: class name xxxxxxxxxxxxxxxxI copied the .jar file to JRE\lib\, even my current directory and add the directory to classpath. I restart my ...

Comments (1) | Promote | Bookmark

text & jpegWed, 07 May 2008 15:55:00 GMT

Hey everyone,There is a problem I have, and I was hoping someone might help me.I develop using j2ee, and I am looking for a way to put a text on a jpeg picture so it can be saved as a new picture together with text (Like a watermark).Thanks for any help, code examples would be welcomed.Natasha...

Comments (0) | Promote | Bookmark

mvn idea bundles "provided" librariesMon, 05 May 2008 13:51:00 GMT

I have a web module in which the servlet API jar is declared with scope"provided". When I generate an IDEA project file, "provided" scopedlibraries are also included as a library to be deployed by the web module."provided" modules should not be packaged by the web module. I'm using the2.0 v...

Comments (0) | Promote | Bookmark

Popunders, How can I do?Thu, 07 Feb 2008 20:03:00 GMT

Hello,I want to add popunders (pop up window which loads behind active browser window).Would someone please give me a snippet code?Mac...

Comments (0) | Promote | Bookmark

Maven 2 Profile property resolutionTue, 06 May 2008 01:40:00 GMT

I have a property defined in a profile. I have 3 modules in a parentproject. When I build the parent project the modules build correctly,where the modules correctly resolve the property defined in the profile.When I build the modules individually using the profile, the propertyfrom the profile d...

Comments (0) | Promote | Bookmark

Struts Editing in IDEMon, 05 May 2008 15:45:00 GMT

Try myEclipse workbench Its realy niceHow low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates....

Comments (0) | Promote | Bookmark

Tiles Again - Can anyone help?Sun, 11 May 2008 07:51:00 GMT

HiI just had a quick look at the link. Without looking too much in depth,isn't myfaces a jsf implementation or have I got that wrong? Do I reallyneed to go outside struts and tiles. Learning struts and hibernate at onceis already enough for my head. ;) MessageFrom: Martin Gainty [mailto:mga...

Comments (0) | Promote | Bookmark

NIO Buffers & geometry transfer across the busMon, 05 May 2008 12:05:00 GMT

Shawn,Sorry for the false alarm. Indexed geometry does use display lists in many cases, but not all.Do you tend to use by-ref or by-copy? Do you use the USE_CRD_INDEXNLY flag or not? Is your geometry writable?Indexed geometry without the USE_CRD_INDEXNLY flag is unindexified (turned into a regul...

Comments (0) | Promote | Bookmark

Tue May 9 02:00:00 GMT 2006Sun, 04 May 2008 23:32:00 GMT

Log:http://maven.zones.apache.org/~...

Comments (0) | Promote | Bookmark

: Project jakarta-turbine-2 (in module jakarta-turbine-2) failedSat, 03 May 2008 15:20:00 GMT

To whom it may engageThis is an automated request, but not an unsolicited one. Formore information please visit ,and/or contact the folk at general (AT) gump (DOT) apache.org.Project jakarta-turbine-2 has an issue affecting its community integration.This issue affects 4 projects.The current stat...

Comments (0) | Promote | Bookmark

Guide to using Eclipse with Maven 2.xSun, 04 May 2008 16:06:00 GMT

I did not get the attachment. Is there a place I can download it from theweb?ThanksSiegfried MessageFrom: Bernd Mau [mailto:Mau (AT) hhla (DOT) de]Sent: Monday, 31, 2005 10:39 AMTo: users (AT) maven (DOT) apache.orgCc: jason (AT) maven (DOT) orgSubject: Guide to using Eclipse with Maven 2.xHi Ja...

Comments (0) | Promote | Bookmark

: Project jakarta-poi (in module jakarta-poi) failedSun, 11 May 2008 23:56:00 GMT

To whom it may engageThis is an automated request, but not an unsolicited one. Formore information please visit ,and/or contact the folk at general (AT) gump (DOT) apache.org.Project jakarta-poi has an issue affecting its community integration.This issue affects 5 projects, and has been outstand...

Comments (0) | Promote | Bookmark