com.isti.util.gui
Class SetupLookAndFeel

java.lang.Object
  extended by com.isti.util.gui.SetupLookAndFeel

public class SetupLookAndFeel
extends java.lang.Object

Class SetupLookAndFeel has a constructor that sets up the "look & feel" for the applet. Creating an object of this class at the top of a class definition causes all objects created afterward to have to desired "look & feel". (Putting the 'UIManager.setLookAndFeel()' call into a 'static' block only works the first time an applet is started in a given browser.)


Constructor Summary
SetupLookAndFeel()
          Set the current default look and feel to the native systems look and feel if there is one, otherwise the default cross platform look and feel.
SetupLookAndFeel(boolean nativeFlag)
          Set the current default look and feel.
SetupLookAndFeel(java.lang.String className)
          Set the current default look and feel.
 
Method Summary
static java.lang.String getLookAndFeelClassName(boolean nativeFlag)
          Gets the a string specifying the name of the class that implements the look and feel.
static void setLookAndFeel()
          Set the current default look and feel to the native systems look and feel if there is one, otherwise the default cross platform look and feel.
static void setLookAndFeel(boolean nativeFlag)
          Set the current default look and feel.
static void setLookAndFeel(java.lang.String className)
          Set the current default look and feel using a class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupLookAndFeel

public SetupLookAndFeel()
Set the current default look and feel to the native systems look and feel if there is one, otherwise the default cross platform look and feel.


SetupLookAndFeel

public SetupLookAndFeel(boolean nativeFlag)
Set the current default look and feel.

Parameters:
nativeFlag - true for the native systems look and feel if there is one, otherwise the default cross platform look and feel.

SetupLookAndFeel

public SetupLookAndFeel(java.lang.String className)
Set the current default look and feel.

Parameters:
className - a string specifying the name of the class that implements the look and feel
Method Detail

getLookAndFeelClassName

public static java.lang.String getLookAndFeelClassName(boolean nativeFlag)
Gets the a string specifying the name of the class that implements the look and feel.

Parameters:
nativeFlag - true for the native systems look and feel if there is one, otherwise the default cross platform look and feel.
Returns:
the a string specifying the name of the class that implements the look and feel.

setLookAndFeel

public static void setLookAndFeel()
Set the current default look and feel to the native systems look and feel if there is one, otherwise the default cross platform look and feel.


setLookAndFeel

public static void setLookAndFeel(boolean nativeFlag)
Set the current default look and feel.

Parameters:
nativeFlag - true for the native systems look and feel if there is one, otherwise the default cross platform look and feel.

setLookAndFeel

public static void setLookAndFeel(java.lang.String className)
Set the current default look and feel using a class name.

Parameters:
className - a string specifying the name of the class that implements the look and feel