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

Field Summary
(package private) static String sMetal
          Static constant member variables:
(package private) static String sMetalClassName
           
(package private) static String sMotif
           
(package private) static String sMotifClassName
           
(package private) static String sWindows
           
(package private) static String sWindowsClassName
           
 
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
 

Field Detail

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
Constructor Detail

LnF

public LnF()
Constructor
Method Detail

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