Class DefaultIcons

java.lang.Object
org.jdesktop.swingx.icon.DefaultIcons

public class DefaultIcons extends Object
collects property names for default UI icons defined in javax swing
Author:
EUG https://github.com/homebeaver
  • Field Details

  • Method Details

    • getIcon

      public static Icon getIcon(String key)
      Returns an Icon from the defaults. If the value for key is not an Icon, null is returned.

      The result depends on LAF, example: - in WindowsLookAndFeel getIcon(JAVACUP16) returns icon with JavaCup16.gif - in MetalLookAndFeel getIcon(JAVACUP16 returns icon computed by InternalFrameDefaultMenuIcon class - in in Nimbus , Motif getIcon(JAVACUP16) returns null

      Parameters:
      key - an Object aka UI name specifying the icon
      Returns:
      Icon the UI icon for this key