public class GuiUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
cachedImageIcons |
private static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
GuiUtils() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyIcon(java.lang.Object component,
java.lang.String iconResourcePath)
Loads an icon image from the classpath and sets the icon of the component.
|
private static final org.apache.commons.logging.Log log
private java.util.Map cachedImageIcons
public boolean applyIcon(java.lang.Object component,
java.lang.String iconResourcePath)
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.