public class GuiUtils extends Object
Constructor and Description |
---|
GuiUtils() |
Modifier and Type | Method and 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.Copyright © 2006–2018. All rights reserved.