com.isti.util.gui
Class ImageIconLoader

java.lang.Object
  extended bycom.isti.util.gui.ImageIconLoader

public class ImageIconLoader
extends java.lang.Object

Class ImageIconLoader defines a helper method for loading an image icon from a URL or file, including a file inside of a 'jar' archive file reference via the 'classpath'.


Method Summary
static javax.swing.ImageIcon load(java.lang.String iconURLStr)
          Loads an image icon from a URL or file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static javax.swing.ImageIcon load(java.lang.String iconURLStr)
Loads an image icon from a URL or file. The file may also reside inside of a 'jar' archive file reference via the 'classpath'.

Parameters:
iconURLStr - URL or filename for the icon to loaded.
Returns:
A new 'ImageIcon' object, or null if the image-icon could not be loaded.