public interface IconProvider
Swing does not provide an abstraction layer
for loading icons according to the current look and feel.
As a consequence, applications either must stick to a single look and feel
or will break the icon theme if the user selects another look and feel.
An IconProvider implements such an abstraction as it loads
icons (for a single namespace, aka "realm") according to the current LookAndFeel and
the icon's name.
| Modifier and Type | Method and Description |
|---|---|
String |
getRealm()
Gets the namespace (realm) this icon provider is responsible for.
|
ImageIcon |
loadImageIcon(LookAndFeel plaf,
String name)
Loads an image icon for the given look and feel.
|
String getRealm()
ImageIcon loadImageIcon(LookAndFeel plaf, String name) throws MissingResourceException
plaf - the look and feelname - the icon's name (without extension like gif or png!)MissingResourceException - if no such iconTentackle - a domain driven enterprise framework