PropertyChangeListener
, EventListener
MetalRootPaneUI
, SynthRootPaneUI
public class BasicRootPaneUI extends RootPaneUI implements PropertyChangeListener
Constructor | Description |
---|---|
BasicRootPaneUI() |
Constructs a BasicRootPaneUI . |
Modifier and Type | Method | Description |
---|---|---|
static ComponentUI |
createUI |
Returns a new instance of BasicRootPaneUI . |
protected void |
installComponents |
Installs components. |
protected void |
installDefaults |
Installs default properties. |
protected void |
installKeyboardActions |
Registers keyboard actions. |
protected void |
installListeners |
Registers listeners. |
void |
propertyChange |
Invoked when a property changes on the root pane. |
protected void |
uninstallComponents |
Unregisters components. |
protected void |
uninstallDefaults |
Uninstalls default properties. |
protected void |
uninstallKeyboardActions |
Unregisters keyboard actions. |
protected void |
uninstallListeners |
Unregisters listeners. |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
public BasicRootPaneUI()
BasicRootPaneUI
.public static ComponentUI createUI(JComponent c)
BasicRootPaneUI
.c
- a componentBasicRootPaneUI
protected void installDefaults(JRootPane c)
c
- an instance of JRootPane
protected void installComponents(JRootPane root)
root
- an instance of JRootPane
protected void installListeners(JRootPane root)
root
- an instance of JRootPane
protected void installKeyboardActions(JRootPane root)
root
- an instance of JRootPane
protected void uninstallDefaults(JRootPane root)
root
- an instance of JRootPane
protected void uninstallComponents(JRootPane root)
root
- an instance of JRootPane
protected void uninstallListeners(JRootPane root)
root
- an instance of JRootPane
protected void uninstallKeyboardActions(JRootPane root)
root
- an instance of JRootPane
public void propertyChange(PropertyChangeEvent e)
defaultButton
has changed, this will reinstall the keyboard actions.propertyChange
in interface PropertyChangeListener
e
- A PropertyChangeEvent object describing the event source and the property that has changed.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicRootPaneUI.html