ui/src/main/java/ucar/nc2/ui/widget/BAMutil.java
public static Image getImage( String name) {
    Image ii;
    if (name.endsWith(".png") || name.endsWith(".jpg") || name.endsWith(".gif"))
       ii = Resource.getImage(defaultResourcePath+name);
    else
       ii =  Resource.getImage(defaultResourcePath+name+".gif");
    return ii;
  }
public static Image getImage( String name) {
    Image ii;
    if (name.endsWith(".png") || name.endsWith(".jpg") || name.endsWith(".gif"))
       ii = Resource.getImage(defaultResourcePath+name);
    else
       ii =  Resource.getImage(defaultResourcePath+name+".gif");
    return ii;
  }
public static Image getImage ( String name ) { Image ii ; if ( name . endsWith ( ".png" ) || name . endsWith ( ".jpg" ) || name . endsWith ( ".gif" ) ) ii = Resource . getImage ( defaultResourcePath + name ) ; else ii = Resource . getImage ( defaultResourcePath + name + ".gif" ) ; return ii ; }
Get the named Image from the default resource (jar file).
@param name name of the Image ( will look for <name>.gif)
@return the Image or null if not found
Get the named Image from the default resource ( jar file ) .