Methods Summary |
---|
public static javax.swing.Icon | getIcon(java.lang.String name)
Image image = getImage( name );
return( image==null?null:new ImageIcon( image ));
|
public static javax.swing.Icon | getIcon(java.io.InputStream is)
Image image = getImage( is );
return( image==null?null:new ImageIcon( image ));
|
public static java.awt.Image | getImage(java.lang.String name)
try{
return(ImageIO.read(UIImageRepository.getImageAsStream(name)));
}catch( Throwable e ){
// some versions of Opera don't have the imageio stuff available it seems
// so catch all errors and return null
Debug.printStackTrace( e );
return( null );
}
|
public static java.awt.Image | getImage(java.io.InputStream is)
try{
return(ImageIO.read(is));
}catch( Throwable e ){
Debug.printStackTrace( e );
return( null );
}
|
public static java.io.InputStream | getImageAsStream(java.lang.String name)
return( UIImageRepository.getImageAsStream(name));
|