类的用途
javax.swing.JOptionPane
使用 JOptionPane 的包
包
描述
提供一个接口和许多抽象类,Swing 使用这些抽象类来提供其可插入的外观功能。
提供根据基本外观构建的用户界面对象。
提供组合了两种或多种外观的用户界面对象。
-
JOptionPane 在 javax.swing.plaf 中的用法
javax.swing.plaf 中的方法,参数类型为 JOptionPane修饰符和类型方法描述abstract booleanOptionPaneUI.containsCustomComponents(JOptionPane op) 如果用户为选项或消息提供了 Component 的实例,则返回 true。abstract voidOptionPaneUI.selectInitialValue(JOptionPane op) 请求表示默认值的组件具有焦点。 -
JOptionPane 在 javax.swing.plaf.basic 中的用法
javax.swing.plaf.basic 中的字段声明为 JOptionPanejavax.swing.plaf.basic 中的方法,参数类型为 JOptionPane修饰符和类型方法描述booleanBasicOptionPaneUI.containsCustomComponents(JOptionPane op) 如果在最后一次调用 validateComponent 时消息或按钮包含 Component 的子类,则返回 true。voidBasicOptionPaneUI.selectInitialValue(JOptionPane op) 如果 inputComponent 不为空,则请求焦点在它上面,否则请求焦点在默认值上 -
JOptionPane 在 javax.swing.plaf.multi 中的用法
javax.swing.plaf.multi 中的方法,参数类型为 JOptionPane修饰符和类型方法描述booleanMultiOptionPaneUI.containsCustomComponents(JOptionPane a) 在此对象处理的每个 UI 上调用containsCustomComponents方法。voidMultiOptionPaneUI.selectInitialValue(JOptionPane a) 在此对象处理的每个 UI 上调用selectInitialValue方法。