fbench
Class IconFactory

java.lang.Object
  extended by fbench.IconFactory

public class IconFactory
extends java.lang.Object

A repository of ImageIcons.

Version:
20050810/JHC - Made ".gif" the default suffix., 20050414/JHC
Author:
JHC

Method Summary
static javax.swing.ImageIcon getIcon(java.lang.String name)
          Retrieve an icon with the given name from the repository.
static javax.swing.ImageIcon getIconFrom(java.lang.String path)
          Retrieve an icon with the given name from specified path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String name)
Retrieve an icon with the given name from the repository. If the icon name does not have a suffix, the ".gif" suffix is added.


getIconFrom

public static javax.swing.ImageIcon getIconFrom(java.lang.String path)
Retrieve an icon with the given name from specified path. The path must be relative to the application directory. If the icon name does not have a suffix, the ".gif" suffix is added.

Parameters:
path -
Returns: