public class MetalRootPaneUI extends javax.swing.plaf.basic.BasicRootPaneUI
JRootPane component. This implementation
supports the JRootPane windowDecorationStyle property.| Constructor and Description |
|---|
MetalRootPaneUI()
Constructs a shared instance of
MetalRootPaneUI. |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Returns a shared instance of
MetalRootPaneUI. |
void |
installUI(javax.swing.JComponent c)
Installs this UI to the root pane.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Receives notification if any of the JRootPane's property changes.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls the UI from the root pane.
|
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerspublic MetalRootPaneUI()
MetalRootPaneUI.public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
MetalRootPaneUI.component - the component for which we return an UI instanceMetalRootPaneUI.public void installUI(javax.swing.JComponent c)
windowDecorationsStyle property is set on the root pane,
the Metal window decorations are installed on the root pane.installUI in class javax.swing.plaf.basic.BasicRootPaneUIc - ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
installUI(javax.swing.JComponent).uninstallUI in class javax.swing.plaf.basic.BasicRootPaneUIc - the root paneComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void propertyChange(java.beans.PropertyChangeEvent ev)
windowDecorationStyle
property and installs the window decorations accordingly.propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class javax.swing.plaf.basic.BasicRootPaneUIev - the property change event