JavaTM 2 Platform
Standard Ed. 6

类 javax.swing.JOptionPane
的使用

使用 JOptionPane 的软件包
javax.swing.plaf 提供一个接口和许多抽象类,Swing 用它们来提供自己的可插入外观功能。 
javax.swing.plaf.basic 提供了根据基本外观构建的用户界面对象。 
javax.swing.plaf.multi 提供了组合两个或多个外观的用户界面对象。 
 

javax.swing.plaf 中 JOptionPane 的使用
 

参数类型为 JOptionPane 的 javax.swing.plaf 中的方法
abstract  boolean OptionPaneUI.containsCustomComponents(JOptionPane op)
          如果用户已经为选项或消息提供 Component 实例,则返回 true。
abstract  void OptionPaneUI.selectInitialValue(JOptionPane op)
          请求表示默认值的组件拥有焦点。
 

javax.swing.plaf.basic 中 JOptionPane 的使用
 

声明为 JOptionPane 的 javax.swing.plaf.basic 中的字段
protected  JOptionPane BasicOptionPaneUI.optionPane
          接收者为其提供外观的 JOptionPane。
 

参数类型为 JOptionPane 的 javax.swing.plaf.basic 中的方法
 boolean BasicOptionPaneUI.containsCustomComponents(JOptionPane op)
          如果在上一次对 validateComponent 的调用中消息或按钮包含 Component 的子类,则返回 true。
 void BasicOptionPaneUI.selectInitialValue(JOptionPane op)
          如果 inputComponent 为非 null,则请求焦点位于其上;否则请求焦点位于默认值上
 

javax.swing.plaf.multi 中 JOptionPane 的使用
 

参数类型为 JOptionPane 的 javax.swing.plaf.multi 中的方法
 boolean MultiOptionPaneUI.containsCustomComponents(JOptionPane a)
          在由此对象处理的每个 UI 上调用 containsCustomComponents 方法。
 void MultiOptionPaneUI.selectInitialValue(JOptionPane a)
          在由此对象处理的每个 UI 上调用 selectInitialValue 方法。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。