public class LookAndFeelManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LookAndFeelManager.ILookAndFeelManagerCaller
Allows for error reporting function and a set-property function of the caller.
|
Constructor and Description |
---|
LookAndFeelManager(Window topLevel,
JMenu lafMenu,
LookAndFeelManager.ILookAndFeelManagerCaller caller)
Allows for setting Look and feel.
|
Modifier and Type | Method and Description |
---|---|
String |
getCurrentLAFClassName()
Returns class name of currently selected LAF.
|
void |
setLAF(int index)
Sets the Look and feel.
|
void |
setLAFex(int index)
Sets the Look and feel.
|
void |
updateLAF()
Updates the window for a possibly newly selected LAF.
|
public LookAndFeelManager(Window topLevel, JMenu lafMenu, LookAndFeelManager.ILookAndFeelManagerCaller caller)
topLevel
- Window to be manipulated.lafMenu
- Submenu to be filled. Must be generated by the caller, or null.caller
- ILookAndFeelManager representing the caller.public void setLAF(int index)
index
- System dependent index of LAF.public void setLAFex(int index) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException
index
- System dependent index of LAF.ClassNotFoundException
InstantiationException
IllegalAccessException
UnsupportedLookAndFeelException
public void updateLAF()
public String getCurrentLAFClassName()
Copyright © 2016. All rights reserved.