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 SummaryModifier 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
- 
Constructor Details- 
BasicRootPaneUIpublic BasicRootPaneUI()
 
- 
- 
Method Details- 
createUIReturns a new instance ofBasicRootPaneUI.- Parameters:
- c- a component
- Returns:
- a new instance of BasicRootPaneUI
 
- 
installDefaultsInstalls default properties.- Parameters:
- c- an instance of- JRootPane
 
- 
installComponentsInstalls components.- Parameters:
- root- an instance of- JRootPane
 
- 
installListenersRegisters listeners.- Parameters:
- root- an instance of- JRootPane
 
- 
installKeyboardActionsRegisters keyboard actions.- Parameters:
- root- an instance of- JRootPane
 
- 
uninstallDefaultsUninstalls default properties.- Parameters:
- root- an instance of- JRootPane
 
- 
uninstallComponentsUnregisters components.- Parameters:
- root- an instance of- JRootPane
 
- 
uninstallListenersUnregisters listeners.- Parameters:
- root- an instance of- JRootPane
 
- 
uninstallKeyboardActionsUnregisters keyboard actions.- Parameters:
- root- an instance of- JRootPane
 
- 
propertyChangeInvoked 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.
 
 
-