org.opennms.bb.eui.admin.utils
Class LnF
java.lang.Object
|
+--org.opennms.bb.eui.admin.utils.LnF
- public class LnF
- extends Object
This class enables the developer to get/set 'look&feel' for
any of the user interface components.
Example usage:
JFrame frame = new JFrame("The Frame");
....
....
String sName = "Motif";
LnF.setLookAndFeel(sName);
SwingUtilities.updateComponentTreeUI(frame);
frame.pack();
When executed, all the ui components pertained to "The Frame"
will adopt to Motif look&feel.
- Version:
- 1.0
- Author:
- chitta
Constructor Summary |
LnF()
Constructor |
Method Summary |
static String |
getLookAndFeel()
Method getLookAndFeel():
This method returns a string indicating the current look&feel. |
static void |
setLookAndFeel(String sName)
Method setLookAndFeel():
This method resets the current look&feel to the one requested. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
sMetal
static final String sMetal
- Static constant member variables:
sMetalClassName
static final String sMetalClassName
sMotif
static final String sMotif
sMotifClassName
static final String sMotifClassName
sWindows
static final String sWindows
sWindowsClassName
static final String sWindowsClassName
LnF
public LnF()
- Constructor
getLookAndFeel
public static String getLookAndFeel()
- Method getLookAndFeel():
This method returns a string indicating the current look&feel.
- Returns:
- String "Metal"/"Motif" or "Windows"
- See Also:
javax.swing.UIManager
setLookAndFeel
public static void setLookAndFeel(String sName)
- Method setLookAndFeel():
This method resets the current look&feel to the one requested.
- Parameters:
nName
- String "Metal"/"Motif" or "Windows" indicating the desired l&f- See Also:
javax.swing.UIManager