|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
net.infonode.gui.laf.InfoNodeLookAndFeel
A Look and Feel that's based on Metal. It's slimmer and use other colors than the standard Metal Look and Feel. Under Java 1.5 the currect Metal theme is stored when the InfoNode Look and Feel is applied, and restored when another Look and Feel is set. Under Java 1.4 or earlier it is not possible to get the current theme and a DefaultMetalTheme is set instead.
To set the look and feel use:
UIManager.setLookAndFeel(new InfoNodeLookAndFeel());Or, if you want to use a different theme, use:
InfoNodeLookAndFeelTheme theme = new InfoNodeLookAndFeelTheme(...); // Modify the theme colors, fonts etc. UIManager.setLookAndFeel(new InfoNodeLookAndFeel(theme));Do not modify the theme after it has been used in the look and feel!
Field Summary | |
static UIManager.LookAndFeelInfo |
LOOK_AND_FEEL_INFO
|
Constructor Summary | |
InfoNodeLookAndFeel()
Constructor. |
|
InfoNodeLookAndFeel(InfoNodeLookAndFeelTheme theme)
Constructor. |
Method Summary | |
String |
getDescription()
|
String |
getName()
|
InfoNodeLookAndFeelTheme |
getTheme()
Gets the active theme |
void |
initialize()
|
static void |
install()
Installs this look and feel with the UIManager , if it's not already installed. |
void |
uninitialize()
|
Methods inherited from class javax.swing.LookAndFeel |
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final UIManager.LookAndFeelInfo LOOK_AND_FEEL_INFO
Constructor Detail |
public InfoNodeLookAndFeel()
public InfoNodeLookAndFeel(InfoNodeLookAndFeelTheme theme)
theme
- the theme to use. Do not modify the theme after this constructor has been called!Method Detail |
public InfoNodeLookAndFeelTheme getTheme()
public void initialize()
public void uninitialize()
public String getName()
public String getDescription()
public static void install()
UIManager
, if it's not already installed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |