java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.OptionPaneUI
- 直接已知的子类:
-
BasicOptionPaneUI,MultiOptionPaneUI
JOptionPane的可插拔外观接口。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean如果用户为选项或消息提供了Component实例,则返回true。abstract void请求代表默认值的组件获得焦点。Methods declared in class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Constructor Details
-
OptionPaneUI
protected OptionPaneUI()子类调用的构造函数。
-
-
Method Details
-
selectInitialValue
请求代表默认值的组件获得焦点。- 参数:
-
op- 一个JOptionPane
-
containsCustomComponents
如果用户为选项或消息提供了Component实例,则返回true。- 参数:
-
op- 一个JOptionPane - 返回:
-
如果给定的
JOptionPane包含用户创建的Component,则返回true
-