Optimizing images in a jar-file <p>Is there an advantages to putting all my small widget graphics in one single png-file, which is loaded once, and then creating ImageIcons for buttons and such from sections of this? (Normally I would just use <code>new ImageIcon(aClass.class.getResource("/path/with/image.png"))</code>.) What would be a good way of doing this?</p>