void
JTabbedPane.Component component,
Object constraints)
将一个 component 添加到选项卡窗格中。
void
JTabbedPane.Component component,
Object constraints,
int index)
在指定的选项卡索引位置添加一个 component。
void
DefaultListModel.Object element)
在此列表的指定位置处插入指定元素。
void
DefaultListModel.Object obj)
将指定组件添加到此类表的末尾。
void
DefaultComboBoxModel.Object anObject)
void
MutableComboBoxModel.Object obj)
在模型的末尾添加项。
protected void
JDesktopPane.Component comp,
Object constraints,
int index)
将指定组件添加到此容器的指定索引所在的位置上。
protected void
JApplet.Component comp,
Object constraints,
int index)
添加指定的子 Component。
protected void
JWindow.Component comp,
Object constraints,
int index)
添加指定的子 Component。
protected void
JViewport.Component child,
Object constraints,
int index)
设置 JViewport 的轻量子对象,可以为 null。
protected void
CellRendererPane.Component x,
Object constraints,
int index)
如果指定组件已经是此组件的子组件,则不必再操心去做任何事,堆栈顺序对于单元格渲染器组件而言无关紧要(CellRendererPane 不管怎样都不进行绘制)。
protected void
JSplitPane.Component comp,
Object constraints,
int index)
将指定组件添加到此分隔窗格。
protected void
JToolBar.Component comp,
Object constraints,
int index)
在添加 JButton 时,它最初被设置为 disabled。
protected void
JDialog.Component comp,
Object constraints,
int index)
添加指定的子 Component。
protected void
AbstractButton.Component comp,
Object constraints,
int index)
将指定组件添加到此容器的指定索引所在的位置上,有关此方法的完整描述,请参阅 Container.addImpl(Component, Object, int)。
protected void
JInternalFrame.Component comp,
Object constraints,
int index)
添加指定的子 Component。
protected void
JLayeredPane.Component comp,
Object constraints,
int index)
protected void
JRootPane.Component comp,
Object constraints,
int index)
重写以便将玻璃组件的位置强行设置成零位子级。
protected void
JFrame.Component comp,
Object constraints,
int index)
添加指定的子 Component。
void
JComboBox.Object anObject)
为项列表添加项。
void
GroupLayout.Component component,
Object constraints)
已将 Component 添加到父容器的通知。
void
void
SpringLayout.Component component,
Object constraints)
如果 constraints 是 SpringLayout.Constraints 的一个实例,则将该约束与指定组件相关联。
void
void
JRootPane.RootLayout.Component comp,
Object constraints)
void
boolean
DefaultListModel.Object elem)
测试指定对象是否为此类表中的组件。
JTree.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
通过渲染器调用以将指定值转换为文本。
void
DefaultListModel.Object[] anArray)
将此列表的组件复制到指定数组中。
static void
JTree.DynamicUtilTreeNode.DefaultMutableTreeNode parent,
Object children)
将 children 中的所有子节点添加到父节点。
protected static TreeModel
TreeModel,它包装指定的对象。
boolean
RowSorter.SortKey.Object o)
如果此对象与指定对象相等,则返回 true。
protected void
AbstractListModel.Object source,
int index0,
int index1)
AbstractListModel 子类必须在列表的一个或多个元素发生更改之后调用此方法。
protected void
AbstractListModel.Object source,
int index0,
int index1)
AbstractListModel 子类必须在将一个或多个元素添加到模型中之后调用此方法。
protected void
AbstractListModel.Object source,
int index0,
int index1)
AbstractListModel 子类必须在从模型中移除一个或多个元素之后调用此方法。
void
SwingWorker.String propertyName,
Object oldValue,
Object newValue)
向所有已注册的侦听器报告绑定属性更新。
protected void
AbstractAction.String propertyName,
Object oldValue,
Object newValue)
支持报告绑定 (bound) 属性的改变。
protected void
JViewport.String propertyName,
Object oldValue,
Object newValue)
通知侦听器发生的属性更改。
protected void
DefaultListCellRenderer.String propertyName,
Object oldValue,
Object newValue)
因为性能原因而被重写。
protected void
UIDefaults.String propertyName,
Object oldValue,
Object newValue)
支持报告绑定属性更改。
protected void
JComponent.String propertyName,
Object oldValue,
Object newValue)
支持报告约束 (constrained) 属性的更改。
ActionMap.Object key)
返回 key 的绑定,如果该绑定不是本地定义的,则将此消息传递给父 ActionMap。
UIDefaults.Object key)
返回键的值。
static Object
UIManager.Object key)
从默认值中返回一个对象。
UIDefaults.Object key,
Locale l)
返回与给定语言环境相关的那些键的值。
static Object
UIManager.Object key,
Locale l)
从适合给定语言环境的默认值中返回一个对象。
boolean
UIDefaults.Object key)
如果 key 是 boolean 值,则返回该 boolean 值,否则返回 false。
static boolean
boolean
Locale 的 key 值是 boolean 值,则返回该 boolean 值,否则返回 false。
static boolean
Locale 相关的默认值中返回一个布尔变量。
UIDefaults.Object key)
如果 key 值为一个 Border,则返回该 Border,否则返回 null。
static Border
UIManager.Object key)
从默认值中返回一个边框。
Locale 的 key 值为一个 Border,则返回该 Border,否则返回 null。
static Border
UIDefaults.Object key)
如果 key 值为一个 Color,则返回它,否则返回 null。
static Color
UIManager.Object key)
从默认值返回一种颜色。
Locale 的 key 值为一个 Color,则返回它,否则返回 null。
static Color
JTable.Object identifier)
返回表中列的 TableColumn 对象,当使用 equals 进行比较时,表的标识符等于 identifier。
static Object
LookAndFeel.String systemPropertyName,
Object fallbackValue)
通过调用 Toolkit.getDefaultToolkit().getDesktopProperty() 返回指定系统桌面属性的值。
key 值为一个 Dimension,则返回该 Dimension,否则返回 null。
Locale 的 key 值为一个 Dimension,则返回该 Dimension,否则返回 null。
UIDefaults.Object key)
如果 key 值为一个 Font,则返回该 Font,否则返回 null。
static Font
UIManager.Object key)
从默认值返回一种字体。
Locale 的 key 值为一个 Font,则返回它,否则返回 null。
static Font
UIDefaults.Object key)
如果 key 值为一个 Icon,则返回该 Icon,否则返回 null。
static Icon
UIManager.Object key)
从默认值中返回一个 Icon。
Locale 的 key 值为一个 Icon,则返回该 Icon,否则返回 null。
static Icon
Icon。
int
DefaultComboBoxModel.Object anObject)
返回指定对象在列表中的索引位置。
UIDefaults.Object key)
如果 key 值为一个 Insets,则返回它,否则返回 null。
static Insets
UIManager.Object key)
从默认值中返回一个 Insets 对象。
Locale 的 key 值为一个 Insets,则返回该 Insets,否则返回 null。
static Insets
Insets 对象。
int
UIDefaults.Object key)
如果 key 值为一个 Integer,则返回该整数值,否则返回 0。
static int
UIManager.Object key)
从默认值中返回一个整数。
int
UIDefaults.Object key,
Locale l)
如果给定 Locale 的 key 值为一个 Integer,则返回其整数值,否则返回 0。
static int
DefaultListCellRenderer.JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
ListCellRenderer.JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
返回已配置用于显示指定值的组件。
UIDefaults.Object key)
如果 key 值为一个 String,则返回该 String,否则返回 null。
static String
UIManager.Object key)
从默认值中返回一个字符串。
Locale 的 key 值为一个 String,则返回该 String,否则返回 null。
static String
DefaultCellEditor.JTable table,
Object value,
boolean isSelected,
int row,
int column)
实现 TableCellEditor 接口。
DefaultCellEditor.JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
实现 TreeCellEditor 接口。
int
DefaultListModel.Object elem)
搜索 elem 的第一次出现。
int
DefaultListModel.Object elem,
int index)
从 index 开始搜索 elem 的第一次出现。
void
DefaultListModel.Object obj,
int index)
将指定对象作为此列表中的组件插入到指定的 index 处。
void
DefaultComboBoxModel.Object anObject,
int index)
void
MutableComboBoxModel.Object obj,
int index)
在指定索引处添加项。
void
JComboBox.Object anObject,
int index)
在项列表中的给定索引处插入项。
static void
LookAndFeel.JComponent c,
String propertyName,
Object propertyValue)
在组件上安装具有指定名称和值的属性的便捷方法,条件是该属性尚未由开发人员设置。
int
DefaultListModel.Object elem)
返回 elem 最后一次出现处的索引。
int
DefaultListModel.Object elem,
int index)
从指定的索引处开始反向搜索 elem,并返回该对象的索引。
static void
InputMap。
keys 创建一个 ComponentInputMapUIResource。
LookAndFeel.Object[] keys)
根据 keys 创建一个 InputMapUIResource。
LookAndFeel.Object[] keyBindingList)
构建一个 KeyBinding 数组的便捷方法。
static boolean
SwingUtilities.Action action,
KeyStroke ks,
KeyEvent event,
Object sender,
int modifiers)
如果启用 action(且为非 null),则调用 action 上的 actionPerformed。
protected void
void
ComponentInputMap.KeyStroke keyStroke,
Object actionMapKey)
将一个 keyStroke 的绑定添加到 actionMapKey。
void
InputMap.KeyStroke keyStroke,
Object actionMapKey)
将 keyStroke 的一个绑定添加到 actionMapKey。
void
ActionMap.Object key,
Action action)
添加一个 key 到 action 的绑定。
UIDefaults.Object key,
Object value)
将 key 值设置为所有语言环境的 value。
static Object
UIManager.Object key,
Object value)
在开发人员默认值中存储一个对象。
void
void
UIDefaults.Object[] keyValueList)
将所有键/值对放入数据库中,并无条件地生成一个 PropertyChangeEvent。
void
AbstractAction.String key,
Object newValue)
设置与指定键关联的 Value。
void
void
JEditorPane.InputStream in,
Object desc)
此方法根据流进行初始化。
void
ActionMap.Object key)
从此 ActionMap 中移除 key 的绑定。
boolean
DefaultListModel.Object obj)
从此列表中移除参数的第一个(索引最小的)匹配项。
void
DefaultComboBoxModel.Object anObject)
void
MutableComboBoxModel.Object obj)
从模型中移除项。
void
JComboBox.Object anObject)
从项列表中移除项。
DefaultListModel.Object element)
使用指定元素替换此列表中指定位置上的元素。
void
DefaultListModel.Object obj,
int index)
将此列表指定 index 处的组件设置为指定的对象。
void
void
JOptionPane.Object newInitialValue)
设置要启用的初始值,即最初显示窗格时处于焦点状态的 Component。
void
JOptionPane.Object newValue)
设置由用户选择或输入的输入值。
void
ComboBoxEditor.Object anObject)
设置应该编辑的项。
void
JList.Object[] listData)
根据一个对象数组构造只读 ListModel,然后对此模型调用 setModel。
void
JOptionPane.Object newMessage)
设置选项窗格的消息对象。
void
JOptionPane.Object[] newOptions)
设置此窗格显示的选项。
void
prototypeCellValue 属性,然后(如果新值为非 null)计算 fixedCellWidth 和 fixedCellHeight 属性:请求单元渲染器组件提供单元渲染器的给定值(及索引 0),并使用该组件的首选大小。
void
JComboBox.Object prototypeDisplayValue)
设置用于计算 UI 部分的显示大小的原型显示值。
void
DefaultComboBoxModel.Object anObject)
设置选择项的值。
void
ComboBoxModel.Object anItem)
设置选择项。
void
void
JList.Object anObject,
boolean shouldScroll)
从列表中选择指定的对象。
void
JOptionPane.Object[] newValues)
设置窗格的输入选择值,该窗格向用户提供可以从中进行选择的项列表。
void
JFormattedTextField.Object value)
设置值,该值由从当前 AbstractFormatterFactory 获得的 AbstractFormatter 进行格式化。
void
JOptionPane.Object newValue)
设置用户所选值。
void
JSpinner.Object value)
更改模型的当前值,通常此值是 editor 所显示的值。
void
SpinnerDateModel.Object value)
设置此序列的当前 Date。
void
SpinnerListModel.Object elt)
改变该序列的当前元素并通知 ChangeListeners。
void
SpinnerModel.Object value)
改变该模型的当前值,通常此值由 JSpinner 的 editor 部分显示。
void
SpinnerNumberModel.Object value)
设置此序列的当前元素。
void
DefaultCellEditor.EditorDelegate.Object value)
设置此单元格的值。
void
Renderer.Object aValue,
boolean isSelected)
指定要显示的值和是否应将该值描绘为“当前选定”。
void
JTable.Object aValue,
int row,
int column)
设置表模型中 row 和 column 位置的单元格值。
static int
JOptionPane.Component parentComponent,
Object message)
调出带有选项 Yes、No 和 Cancel 的对话框;标题为 Select an Option。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType)
调出一个由 optionType 参数确定其中选项数的对话框。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType)
调用一个由 optionType 参数确定其中选项数的对话框,messageType 参数确定要显示的图标。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon)
调出一个带有指定图标的对话框,其中的选项数由 optionType 参数确定。
static String
JOptionPane.Component parentComponent,
Object message)
显示请求用户输入内容的问题消息对话框,它以 parentComponent 为父级。
static String
JOptionPane.Component parentComponent,
Object message,
Object initialSelectionValue)
显示请求用户输入内容的问题消息对话框,它以 parentComponent 为父级。
static String
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType)
显示请求用户输入内容的对话框,它以 parentComponent 为父级,该对话框的标题为 title,消息类型为 messageType。
static Object
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
提示用户在可以指定初始选择、可能选择及其他所有选项的模块化的对话框中输入内容。
static Object
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
提示用户在可以指定初始选择、可能选择及其他所有选项的模块化的对话框中输入内容。
static String
JOptionPane.Object message)
显示请求用户输入的问题消息对话框。
static String
JOptionPane.Object message,
Object initialSelectionValue)
显示请求用户输入的问题消息对话框,它带有已初始化为 initialSelectionValue 的输入值。
static int
Yes、No 和 Cancel 的内部对话框面板;标题为 Select an Option。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType)
调出一个由 optionType 参数确定其中选项数的内部对话框面板。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType)
调出一个由 optionType 参数确定其中选项数的内部对话框面板,messageType 参数确定要显示的图标。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon)
调出一个带有指定图标的内部对话框面板,其中的选项数由 optionType 参数确定。
static String
parentComponent 为父级。
static String
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType)
显示请求用户输入内容的内部对话框,它以 parentComponent 为父级。
static Object
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
提示用户在可以指定初始选择、可能选择及其他所有选项的模块化的内部对话框中输入内容。
static Object
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)
提示用户在可以指定初始选择、可能选择及其他所有选项的模块化的内部对话框中输入内容。
static void
static void
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType)
调出一个显示消息的内部对话框面板,它使用由 messageType 参数确定的默认图标。
static void
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon)
调出一个显示消息的内部对话框面板,为其指定了所有参数。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
调出一个带有指定图标的内部对话框面板,其中的初始选择由 initialValue 参数确定,选项数由 optionType 参数确定。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
调出一个带有指定图标的内部对话框面板,其中的初始选择由 initialValue 参数确定,选项数由 optionType 参数确定。
static void
JOptionPane.Component parentComponent,
Object message)
调出标题为 "Message" 的信息消息对话框。
static void
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType)
调出对话框,它显示使用由 messageType 参数确定的默认图标的 message。
static void
JOptionPane.Component parentComponent,
Object message,
String title,
int messageType,
Icon icon)
调出一个显示信息的对话框,为其指定了所有参数。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
调出一个带有指定图标的对话框,其中的初始选择由 initialValue 参数确定,选项数由 optionType 参数确定。
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
调出一个带有指定图标的对话框,其中的初始选择由 initialValue 参数确定,选项数由 optionType 参数确定。
abstract String
JFormattedTextField.AbstractFormatter.Object value)
返回为 value 显示的 string 值。