public class GuiUtils
extends java.lang.Object
| 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.
|
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.