org.jets3t.gui
Class GuiUtils

java.lang.Object
  extended by org.jets3t.gui.GuiUtils

public class GuiUtils
extends java.lang.Object

Utility methods for GUI-related tasks.

Author:
James Murty

Constructor Summary
GuiUtils()
           
 
Method Summary
 boolean applyIcon(java.lang.Object component, java.lang.String iconResourcePath)
          Loads an icon image from the classpath and sets the icon of the component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiUtils

public GuiUtils()
Method Detail

applyIcon

public boolean applyIcon(java.lang.Object component,
                         java.lang.String iconResourcePath)
Loads an icon image from the classpath and sets the icon of the component.

Parameters:
component - the component to apply the icon to, supported components are: JMenuItem, JButton, JLabel, Frame.
iconResourcePath - the path to an icon image in the classpath.
Returns:
true if the icon was found and applied to the component