- java.lang.Object
 -  
      
- javax.swing.plaf.ComponentUI
 -  
        
- javax.swing.plaf.RootPaneUI
 -  
          
- javax.swing.plaf.basic.BasicRootPaneUI
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
PropertyChangeListener,EventListener 
- 已知直接子类:
 -  
         
MetalRootPaneUI,SynthRootPaneUI 
public class BasicRootPaneUI extends RootPaneUI implements PropertyChangeListener
RootPaneUI的基本实现,所有JRootPane实例之间共享一个。- 从以下版本开始:
 - 1.3
 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 BasicRootPaneUI() 
-  
             
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 static ComponentUIcreateUI(JComponent c)返回BasicRootPaneUI的新实例。protected voidinstallComponents(JRootPane root)安装组件。protected voidinstallDefaults(JRootPane c)安装默认属性。protected voidinstallKeyboardActions(JRootPane root)注册键盘操作。protected voidinstallListeners(JRootPane root)注册听众。voidpropertyChange(PropertyChangeEvent e)在根窗格上更改属性时调用。protected voiduninstallComponents(JRootPane root)取消注册组件。protected voiduninstallDefaults(JRootPane root)卸载默认属性。protected voiduninstallKeyboardActions(JRootPane root)取消注册键盘操作。protected voiduninstallListeners(JRootPane root)取消注册听众。-  
               
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
createUI
public static ComponentUI createUI(JComponent c)
返回BasicRootPaneUI的新实例。- 参数
 -  
              
c- 一个组件 - 结果
 -  
              
BasicRootPaneUI的新实例 
 
-  
installDefaults
protected void installDefaults(JRootPane c)
安装默认属性。- 参数
 -  
              
c-实例JRootPane 
 
-  
installComponents
protected void installComponents(JRootPane root)
安装组件。- 参数
 -  
              
root-实例JRootPane 
 
-  
installListeners
protected void installListeners(JRootPane root)
注册听众。- 参数
 -  
              
root-实例JRootPane 
 
-  
installKeyboardActions
protected void installKeyboardActions(JRootPane root)
注册键盘操作。- 参数
 -  
              
root-实例JRootPane 
 
-  
uninstallDefaults
protected void uninstallDefaults(JRootPane root)
卸载默认属性。- 参数
 -  
              
root-实例JRootPane 
 
-  
uninstallComponents
protected void uninstallComponents(JRootPane root)
取消注册组件。- 参数
 -  
              
root-实例JRootPane 
 
-  
uninstallListeners
protected void uninstallListeners(JRootPane root)
取消注册听众。- 参数
 -  
              
root-实例JRootPane 
 
-  
uninstallKeyboardActions
protected void uninstallKeyboardActions(JRootPane root)
取消注册键盘操作。- 参数
 -  
              
root-实例JRootPane 
 
-  
propertyChange
public void propertyChange(PropertyChangeEvent e)
在根窗格上更改属性时调用。 如果事件表明defaultButton已更改,则将重新安装键盘操作。- Specified by:
 -  
              
propertyChange在界面PropertyChangeListener - 参数
 -  
              
e- 描述事件源和已更改的属性的PropertyChangeEvent对象。 
 
 -  
 
 -