org.tigris.toolbutton
Class ResourceLocator

java.lang.Object
  |
  +--org.tigris.toolbutton.ResourceLocator

public class ResourceLocator
extends java.lang.Object

A helper class to find requested resources.

Author:
Bob Tarling

Method Summary
 void addResourcePath(java.lang.String path)
           
 javax.swing.ImageIcon getIcon(java.lang.String filename)
          Attempt to find an icon resource within the registered paths.
static org.tigris.toolbutton.ResourceLocator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static org.tigris.toolbutton.ResourceLocator getInstance()

getIcon

public javax.swing.ImageIcon getIcon(java.lang.String filename)
Attempt to find an icon resource within the registered paths.

Parameters:
filename - The filename of the icon resource.

addResourcePath

public void addResourcePath(java.lang.String path)