javax.swing.plaf.metal

Class MetalRootPaneUI

public class MetalRootPaneUI extends BasicRootPaneUI

A UI delegate for the {@link JRootPane} component. This implementation supports the JRootPane windowDecorationStyle property.

Since: 1.4

Constructor Summary
MetalRootPaneUI()
Constructs a shared instance of MetalRootPaneUI.
Method Summary
static ComponentUIcreateUI(JComponent component)
Returns a shared instance of MetalRootPaneUI.
voidinstallUI(JComponent c)
Installs this UI to the root pane.
voidpropertyChange(PropertyChangeEvent ev)
Receives notification if any of the JRootPane's property changes.
voiduninstallUI(JComponent c)
Uninstalls the UI from the root pane.

Constructor Detail

MetalRootPaneUI

public MetalRootPaneUI()
Constructs a shared instance of MetalRootPaneUI.

Method Detail

createUI

public static ComponentUI createUI(JComponent component)
Returns a shared instance of MetalRootPaneUI.

Parameters: component the component for which we return an UI instance

Returns: A shared instance of MetalRootPaneUI.

installUI

public void installUI(JComponent c)
Installs this UI to the root pane. If the windowDecorationsStyle property is set on the root pane, the Metal window decorations are installed on the root pane.

Parameters: c

propertyChange

public void propertyChange(PropertyChangeEvent ev)
Receives notification if any of the JRootPane's property changes. In particular this catches changes to the windowDecorationStyle property and installs the window decorations accordingly.

Parameters: ev the property change event

uninstallUI

public void uninstallUI(JComponent c)
Uninstalls the UI from the root pane. This performs the superclass behaviour and uninstalls the window decorations that have possibly been installed by {@link #installUI}.

Parameters: c the root pane