com.glaivestone.javax.awt
Class ImageIconX

java.lang.Object
  |
  +--com.glaivestone.javax.awt.ImageIconX

public final class ImageIconX
extends java.lang.Object

Utilities for ImageIcon.

Version:
1.0
Author:
Gary Gregory

Method Summary
static javax.swing.Icon getSystemResourceIcon(java.lang.String path)
          Returns an ImageIcon which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG.
static javax.swing.ImageIcon getSystemResourceImageIcon(java.lang.String path)
          Returns an ImageIcon which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSystemResourceImageIcon

public static javax.swing.ImageIcon getSystemResourceImageIcon(java.lang.String path)
Returns an ImageIcon which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG. This method may return null.

See Also:
ClassLoader.getSystemResource(String), Toolkit.getImage(URL)

getSystemResourceIcon

public static javax.swing.Icon getSystemResourceIcon(java.lang.String path)
Returns an ImageIcon which gets pixel data from the specified file on the class path, whose format can be either GIF, JPEG or PNG. This method may return null.

See Also:
getSystemResourceImageIcon(String)

GFL 1.1 API