- java.lang.Object
- 
- javax.swing.plaf.ComponentUI
- 
- javax.swing.plaf.RootPaneUI
- 
- javax.swing.plaf.basic.BasicRootPaneUI
 
 
 
- 
- All Implemented Interfaces:
- PropertyChangeListener,- EventListener
 - Direct Known Subclasses:
- MetalRootPaneUI,- SynthRootPaneUI
 
 public class BasicRootPaneUI extends RootPaneUI implements PropertyChangeListener Basic implementation of RootPaneUI, there is one shared between all JRootPane instances.- Since:
- 1.3
 
- 
- 
Constructor SummaryConstructors Constructor Description BasicRootPaneUI()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)Returns a new instance ofBasicRootPaneUI.protected voidinstallComponents(JRootPane root)Installs components.protected voidinstallDefaults(JRootPane c)Installs default properties.protected voidinstallKeyboardActions(JRootPane root)Registers keyboard actions.protected voidinstallListeners(JRootPane root)Registers listeners.voidpropertyChange(PropertyChangeEvent e)Invoked when a property changes on the root pane.protected voiduninstallComponents(JRootPane root)Unregisters components.protected voiduninstallDefaults(JRootPane root)Uninstalls default properties.protected voiduninstallKeyboardActions(JRootPane root)Unregisters keyboard actions.protected voiduninstallListeners(JRootPane root)Unregisters listeners.- 
Methods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
- 
 
- 
- 
- 
Method Detail- 
createUIpublic static ComponentUI createUI(JComponent c) Returns a new instance ofBasicRootPaneUI.- Parameters:
- c- a component
- Returns:
- a new instance of BasicRootPaneUI
 
 - 
installDefaultsprotected void installDefaults(JRootPane c) Installs default properties.- Parameters:
- c- an instance of- JRootPane
 
 - 
installComponentsprotected void installComponents(JRootPane root) Installs components.- Parameters:
- root- an instance of- JRootPane
 
 - 
installListenersprotected void installListeners(JRootPane root) Registers listeners.- Parameters:
- root- an instance of- JRootPane
 
 - 
installKeyboardActionsprotected void installKeyboardActions(JRootPane root) Registers keyboard actions.- Parameters:
- root- an instance of- JRootPane
 
 - 
uninstallDefaultsprotected void uninstallDefaults(JRootPane root) Uninstalls default properties.- Parameters:
- root- an instance of- JRootPane
 
 - 
uninstallComponentsprotected void uninstallComponents(JRootPane root) Unregisters components.- Parameters:
- root- an instance of- JRootPane
 
 - 
uninstallListenersprotected void uninstallListeners(JRootPane root) Unregisters listeners.- Parameters:
- root- an instance of- JRootPane
 
 - 
uninstallKeyboardActionsprotected void uninstallKeyboardActions(JRootPane root) Unregisters keyboard actions.- Parameters:
- root- an instance of- JRootPane
 
 - 
propertyChangepublic void propertyChange(PropertyChangeEvent e) Invoked when a property changes on the root pane. If the event indicates thedefaultButtonhas changed, this will reinstall the keyboard actions.- Specified by:
- propertyChangein interface- PropertyChangeListener
- Parameters:
- e- A PropertyChangeEvent object describing the event source and the property that has changed.
 
 
- 
 
-