public class GuiUtils extends Object
| Constructor | Description |
|---|---|
GuiUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
applyIcon(Object component,
String iconResourcePath) |
Loads an icon image from the classpath and sets the icon of the component.
|
public boolean applyIcon(Object component, 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.