Posted on 2005-03-04
I want to create an image icon by using Java. Here is my code:
ImageIcon initImage = new ImageIcon("image.gif");
content = new JLabel (initImage);
Why didn't the picture in image.gif show up? I created image.gif by Photoshop (in Transparent mode). In addition, this image.gif is in the same folder as the classes that I am working on.
What should I do?