API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. LookAndFeel View Source
Author(s)
Tom Ball
Hans Muller
Since
Version
1.44 07/12/06
Serial
Hierarchy
 Object
      LookAndFeel
Implements
Subclasses
Description
publicabstract abstract class LookAndFeel
  LookAndFeel, as the name implies, encapsulates a look and feel.
See also:   
Constructors
public LookAndFeel ()
Methods
Hide/Show inherited methods
public UIDefaults getDefaults ()
  Returns the look and feel defaults.
publicabstract String getDescription ()
  Return a one line description of this look and feel implementation, e.g.
publicstatic Object getDesktopPropertyValue (String systemPropertyName, Object fallbackValue)
  Returns the value of the specified system desktop property by invoking Toolkit.getDefaultToolkit().getDesktopProperty().
public Icon getDisabledIcon (JComponent component, Icon icon)
  Returns an Icon with a disabled appearance.
public Icon getDisabledSelectedIcon (JComponent component, Icon icon)
  Returns an Icon for use by disabled components that are also selected.
publicabstract String getID ()
  Return a string that identifies this look and feel.
public LayoutStyle getLayoutStyle ()
  Returns the LayoutStyle for this look and feel.
publicabstract String getName ()
  Return a short string that identifies this look and feel, e.g.
public boolean getSupportsWindowDecorations ()
  Returns true if the LookAndFeel returned RootPaneUI instances support providing Window decorations in a JRootPane.
public void initialize ()
  Initializes the look and feel.
publicstatic void installBorder (JComponent c, String defaultBorderName)
  Convenience method for setting a component's border property with a value from the defaults.
publicstatic void installColors (JComponent c, String defaultBgName, String defaultFgName)
  Convenience method for setting a component's foreground and background color properties with values from the defaults.
publicstatic void installColorsAndFont (JComponent c, String defaultBgName, String defaultFgName, String defaultFontName)
  Convenience method for setting a component's foreground, background and font properties with values from the defaults.
publicstatic void installProperty (JComponent c, String propertyName, Object propertyValue)
  Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the developer.
publicabstract boolean isNativeLookAndFeel ()
  If the underlying platform has a "native" look and feel, and this is an implementation of it, return true.
publicabstract boolean isSupportedLookAndFeel ()
  Return true if the underlying platform supports and or permits this look and feel.
publicstatic void loadKeyBindings (InputMap retMap, Object keys)
  Populates an InputMap with the specified bindings.
publicstatic ComponentInputMap makeComponentInputMap (JComponent c, Object keys)
  Creates a ComponentInputMapUIResource from keys.
publicstatic Object makeIcon (Class<Object> baseClass, String gifFile)
  Creates and returns a UIDefault.LazyValue that loads an image.
publicstatic InputMap makeInputMap (Object keys)
  Creates a InputMapUIResource from keys.
publicstatic KeyBinding makeKeyBindings (Object keyBindingList)
  Convenience method for building an array of KeyBindings.
public void provideErrorFeedback (Component component)
  Invoked when the user attempts an invalid operation, such as pasting into an uneditable JTextField that has focus.
public String toString ()
  Returns a string that displays and identifies this object's properties.
public void uninitialize ()
  Uninitializes the look and feel.
publicstatic void uninstallBorder (JComponent c)
  Convenience method for uninstalling a border.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar