icon = new ImageIcon (name); if (((ImageIcon)icon).getIconWidth () == -1) { jarName = new String ("/"); jarName = jarName.concat (name); try { icon = new ImageIcon (this.getClass ().getResource (jarName));
icon = new ImageIcon(name); if (((ImageIcon) icon).getIconWidth() == -1) { jarName = new String("/"); jarName = jarName.concat(name); try { icon = new ImageIcon(this.getClass().getResource(jarName)); } catch (java.lang.NullPointerException e) { ErrorMsg.reportStatus("ImageIcon:LoadIcon Could not find: " + name);
    private ImageIcon loadIcon (String name)    {        Object icon;        String jarName = null;        icon = new ImageIcon (name);        if (((ImageIcon)icon).getIconWidth () == -1)        {            jarName = new String ("/");            jarName = jarName.concat (name);            try            {                icon = new ImageIcon (this.getClass ().getResource (jarName));            }            catch (java.lang.NullPointerException e)            {                ErrorMsg.reportStatus ("ImageIcon:LoadIcon Could not find: " + name);            }        }        return (ImageIcon)icon;    }