Anyway this morning I have been struggling with how to change the default icon for the application from the boring old Coffee Cup.
In normal applications the way to do this is simply
setIconImage( Toolkit.getDefaultToolkit.getImage("full image file name"));in your JFrame constructor.
With the java Swing application framework you have to..
- Copy the image into the resources directory.
- Find the properties file for your main View class.
- Add a key, something like iconImage=my short filename (i.e. just the filename without the path.)
- Then add the following code to the start of the constructor for your view..
Image img = (Image)getResourceMap().getObject("iconImage",Image.class);