public class IconStorage
extends java.lang.Object
ImageIcon instances.| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clears all cached icon instances.
|
static javax.swing.ImageIcon |
getIcon(java.lang.String iconName)
Resolves and returns an
ImageIcon from the classpath. |
public static javax.swing.ImageIcon getIcon(java.lang.String iconName)
ImageIcon from the classpath.
Looks up the resource in the following order:
/<iconName>)/org/javalobby/icons/<iconName>)iconName - relative or absolute resource path of the icon; must not be nullImageIcon, or null if the resource does not existpublic static void clearCache()
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.