jbcl.util Package
java.lang.Object +----com.borland.jbcl.util.LookAndFeelManager
Variables Constructors Properties MethodsThe
LookAndFeelManager
is a utility that can be used to change the look-and-feel style of the user interface.
There are two ways to use change the look and feel of the user interface using the LookAndFeelManager
. You can specify a look-and-feel style with the lookAndFeel
property, or you can specify a component from which the LookAndFeelManager
can obtain the look-and-feel style using the rootComponent
property.
protected transient Component rootComponent
public LookAndFeelManager()Constructs a
LookAndFeelManager
component.
public LookAndFeel getLookAndFeel() public void setLookAndFeel(LookAndFeel lookAndFeel)Determines the current look-and-feel style used by the user interface. Setting
lookAndFeel
changes the look-and-feel style of the UI to the specified style of the lookAndFeel
parameter.
public Component getRootComponent() public void setRootComponent(Component rootComponent)Determines the root component from which the look-and-feel style of the user interface is derived. Setting
rootComponent
changes the look-and-feel style of the UI to the same look-and-feel style of the component specified with the rootComponent
parameter.
public void updateUI()Updates the user interface to the new look and feel.
updateUI()
is called whenever the lookAndFeel
property is set or the rootComponent
is set.