HokeyFry
March 30th, 2006, 04:25 AM
I am creating a text editor for my java class in high school. I have all of the essential parts done (i.e. input text, save, change color, etc.) and now I am moving on to sprucing it up with at least 15 pieces of flair ;) .
One of these things is a splash image. But, since I can't get a proper one to come up, I just made a message box using JOptionPane and stuck an ImageIcon in it, just to make it look cool. When I run the class in bluej before creating a jar file, it works perfectly. But when I create an executable jar file, the image won't display. Just so you know, the image is in the same directory when I create the jar file, and the ImageIcon respects this. Also, the rest of the program works perfectly, it is just this one problem at this point. I would also like to point out that this is the first jar file I have ever made before, so if it is something easy and/or obvious, please bear with me.
One of these things is a splash image. But, since I can't get a proper one to come up, I just made a message box using JOptionPane and stuck an ImageIcon in it, just to make it look cool. When I run the class in bluej before creating a jar file, it works perfectly. But when I create an executable jar file, the image won't display. Just so you know, the image is in the same directory when I create the jar file, and the ImageIcon respects this. Also, the rest of the program works perfectly, it is just this one problem at this point. I would also like to point out that this is the first jar file I have ever made before, so if it is something easy and/or obvious, please bear with me.