|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.japi.swing.LookAndFeelManager
public final class LookAndFeelManager
A class that manages look and feel and provides a corresponding menu.
If you want your frames and dialogs to be default look and feel decorated, you currently must invoke the corresponding method setDefaultLookAndFeelDecorated(boolean)
before creating any instances of JFrame or JDialog.
Constructor Summary | |
---|---|
LookAndFeelManager()
Create a LookAndFeelManager. |
Method Summary | |
---|---|
void |
add(Component comp)
Add a Component to the roots. |
JMenu |
createMenu()
Provide a menu which allows the user to choose from installed look and feels. |
JMenu |
fillMenu(JMenu menu)
Fill a menu with look and feel selection items. |
void |
remove(Component comp)
Remove a Component to the roots. |
void |
setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
Set whether JFrames and JDialogs should use the default look and feel decoration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookAndFeelManager()
Method Detail |
---|
public void add(Component comp)
comp
- Component to add to the rootspublic JMenu createMenu()
public JMenu fillMenu(JMenu menu)
menu
- Menu to fill
public void remove(Component comp)
comp
- Component to remove from the rootspublic void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
defaultLookAndFeelDecorated
- true
for decoration from default look and feel, false
for decoration from osJFrame.setDefaultLookAndFeelDecorated(boolean)
,
JDialog.setDefaultLookAndFeelDecorated(boolean)
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |