Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am new to java so don't know how to do graphics in java using the swing packages... i have instaled java sdk for linux in my Red hat linux 9... but the graphical codes of java in windows don't work in linux... why does this happens can anyone tell me....
Are you trying to compile Java code with gcj? Because it compiles fine, but I've been trying to compile an imported class (javax.swing....) which has JOptionPane ( a graphical dialog box ) and it returns an error... no problems under Sun's j2sdk with javac compiler though...
hey there, i have been having difficulty getting my java programs to use images such as gif or jpg.
Im using slackware9.1 j2sdk 1.4.2, & netbeans 3.5
ive been trying to get images to display in my GUI but no luck.whats even more strange is that it worked on windows. here is the example code.
Icon jim= new ImageIcon("PHOTO.JPEG");
JLabel jimLabel=new JLabel();
the same sort of thing happened to me when i was using mandrake too.
another thing thats strange is the image will load up in the title bar using...
Are you trying to run the application directly from the IDE? I mean, I use (or ratter saying, used, not anymore) DrJava (http://drjava.sourceforge.net/) it's the best IDE that I've ever used for Java. BUT, for some weird reason, all images would not run when executing the application directly from the IDE. But, If I've compiled (javac myProgram.java) and tried to run my application (java myProgram) at the console, it worked perfectly. I don't know the reason for this, but that could also be your case...
Yep thats it,your right.
When you run the app from the IDE it doesn't load the images but doing it from the console does.
Thanks for that MegaMan X.
I wonder why it does that?
Ill have to ask sun that.
I've got tell you mate, I feel sorry that it does not work for you either. But it's kinda of a relief for me to know that there're no ghosts wandering my computer (unless there're some ghosts at your machine too) lol.
I've tried to find an explanation for it on the net, but I was unsuccessful. If you ever find it, please let me know .