I want to change icon of the JDialog (to replace standard java cup) I am able to do that this way:
ImageIcon img = new ImageIcon(OuterClass.class.getResource
The ImageIcon API states that the supported types are JPEG & GIF. Not too sure of a workaround for that.