/** * Returns an ImageIcon from the given name. * * @param name the filename without path * @return the ImageIcon or null if not available */ public static ImageIcon getIcon(String name) { String filename; filename = getImageFilename(name); if (filename != null) return new ImageIcon(GUIHelper.class.getClassLoader().getResource(filename)); else return null; }