ui/src/main/java/ucar/nc2/ui/widget/BAMutil.java
public static ImageIcon getIcon( String name, boolean errMsg) {
    ImageIcon ii = Resource.getIcon(defaultResourcePath+name+".gif", errMsg);
    if (ii == null) Resource.getIcon(defaultResourcePath+name+".png", errMsg);
    return ii;
  }
public static ImageIcon getIcon( String name, boolean errMsg) {
    ImageIcon ii = Resource.getIcon(defaultResourcePath+name+".gif", errMsg);
    if (ii == null) Resource.getIcon(defaultResourcePath+name+".png", errMsg);
    return ii;
  }
Get the named Icon from the default resource (jar file).
@param name name of the Icon ( will look for <name>.gif)
@param errMsg true= print error message if not found
@return the Icon or null if not found