protected boolean
LayoutFocusTraversalPolicy.Component aComponent)
确定是否可以接受选择指定的 Component 作为新的焦点所有者。
protected boolean
SortingFocusTraversalPolicy.Component aComponent)
确定是否可以接受选择某个 Component 作为新的焦点拥有者。
JTabbedPane.Component component)
添加一个 component,其选项卡的默认值为调用 component.getName 返回的组件的名称。
JTabbedPane.Component component,
int index)
在指定的选项卡索引位置添加一个 component,默认的选项卡标题为组件名称。
JMenu.Component c,
int index)
将指定组件添加到此容器的给定位置上。
void
JTabbedPane.Component component,
Object constraints)
将一个 component 添加到选项卡窗格中。
void
JTabbedPane.Component component,
Object constraints,
int index)
在指定的选项卡索引位置添加一个 component。
JTabbedPane.String title,
Component component)
添加具有指定选项卡标题的 component。
GroupLayout.SequentialGroup.Component component)
将 Component 添加到此 Group。
GroupLayout.SequentialGroup.Component component,
int min,
int pref,
int max)
使用指定大小将 Component 添加到此 Group。
GroupLayout.Group.Component component)
将 Component 添加到此 Group。
GroupLayout.SequentialGroup.Component component)
将 Component 添加到此 Group。
GroupLayout.ParallelGroup.Component component)
将 Component 添加到此 Group。
GroupLayout.ParallelGroup.Component component,
GroupLayout.Alignment alignment)
使用指定的对齐方式将 Component 添加到此 ParallelGroup。
GroupLayout.ParallelGroup.Component component,
GroupLayout.Alignment alignment,
int min,
int pref,
int max)
使用指定的对齐方式和大小将 Component 添加到此 ParallelGroup。
GroupLayout.Group.Component component,
int min,
int pref,
int max)
使用指定大小将 Component 添加到此 Group。
GroupLayout.SequentialGroup.Component component,
int min,
int pref,
int max)
使用指定大小将 Component 添加到此 Group。
GroupLayout.ParallelGroup.Component component,
int min,
int pref,
int max)
使用指定大小将 Component 添加到此 Group。
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
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
Component 添加到父容器的通知。
void
JSpinner.DefaultEditor.String name,
Component child)
此 LayoutManager 方法不执行任何操作。
void
void
void
void
void
void
JTabbedPane.String title,
Component component)
添加一个由 title 表示,且没有图标的 component。
void
JTabbedPane.String title,
Icon icon,
Component component)
添加一个由 title 和/或 icon 表示的 component,其任意一个都可以为 null。
void
JTabbedPane.String title,
Icon icon,
Component component,
String tip)
添加由 title 和/或 icon 表示的 component 和 tip,其中任意一个都可以为 null。
MenuSelectionManager.Component source,
Point sourcePoint)
返回包含 sourcePoint 的当前选择路径的组件。
SwingUtilities.Component source,
MouseEvent sourceEvent,
Component destination)
返回类似于 sourceEvent 的 MouseEvent,除了其 x 和 y 成员已转换到 destination 的坐标系统。
static Point
SwingUtilities.Component source,
int x,
int y,
Component destination)
将 source 坐标系统中的点 (x,y) 转换到 destination 坐标系统。
static Point
SwingUtilities.Component source,
Point aPoint,
Component destination)
将 source 坐标系统中的 aPoint 转换到 destination 坐标系统。
static void
static void
SwingUtilities.Component source,
Rectangle aRectangle,
Component destination)
将 source 坐标系统中的矩形 aRectangle 转换到 destination 坐标系统。
protected JDialog
JFileChooser.Component parent)
创建并返回包含 this 的新 JDialog,在 parent 窗体中的 parent 上居中。
JOptionPane.Component parentComponent,
String title)
创建并返回一个新 JDialog,它在 parentComponent 窗体中的 parentComponent 中央包装 this。
JColorChooser.Component c,
String title,
boolean modal,
JColorChooser chooserPane,
ActionListener okListener,
ActionListener cancelListener)
创建并返回包含指定 ColorChooser 窗格及 "OK"、"Cancel" 和 "Reset" 按钮的新对话框。
JOptionPane.Component parentComponent,
String title)
创建并返回 JInternalFrame 的实例。
已过时。 从 1.4 开始,由 KeyboardFocusManager.getFocusOwner() 取代。
Point 处包含的 Accessible 子对象。
SwingUtilities.Component c,
int i)
返回对象的第 n 个可访问子对象。
static int
static int
comp 的便捷方法,返回它找到的 name 第一个对象。
comp 的便捷方法,返回它找到的类 c 的第一个对象。
LayoutFocusTraversalPolicy.Container aContainer,
Component aComponent)
返回应在 aComponent 之后接收焦点的 Component。
SortingFocusTraversalPolicy.Container aContainer,
Component aComponent)
返回应该接收 aComponent 后面的焦点的 Component。
LayoutFocusTraversalPolicy.Container aContainer,
Component aComponent)
返回应在 aComponent 之前接收焦点的 Component。
SortingFocusTraversalPolicy.Container aContainer,
Component aComponent)
返回应该接收 aComponent 前面的焦点的 Component。
int
SwingUtilities.Component parent,
int x,
int y)
返回包含位置 x、y 的 parent 的最深可见后代组件。
static Frame
JOptionPane.Component parentComponent)
返回指定组件的 Frame。
int
int
SwingUtilities.Component aComponent)
返回组件 aComponent 的矩形 (0,0,bounds.width,bounds.height)。
RepaintManager.Component c,
int proposedWidth,
int proposedHeight)
返回屏幕外缓冲区,它应用作带有组件 c 的双缓冲区。
PopupFactory.Component owner,
Component contents,
int x,
int y)
为包含 Component contents 的 Component owner 创建 Popup。
int
SwingUtilities.Component c)
返回当前组件树结构的根组件。
RepaintManager.Component c,
int proposedWidth,
int proposedHeight)
返回可变屏幕外缓冲区,它应用作带有指定组件 c 的双缓冲区。
static Window
c 的第一个 Window 祖先;如果 c 未包含在 Window 内,则返回 null。
static Spring
minimum、preferred、maximum 和 value 属性由所提供组件的 minimumSize、preferredSize、maximumSize 和 size 属性的高度定义。
int
int
void
JPopupMenu.Component component,
int index)
将指定组件插入到菜单的给定位置。
void
void
JTabbedPane.String title,
Icon icon,
Component component,
String tip,
int index)
在 index 位置插入一个 component,该组件通过 title 和/或 icon(任意一个都可以为 null)来表示。
boolean
static boolean
a 从组件 b 继承,则返回 true。
static boolean
boolean
void
GroupLayout.Component... components)
将指定组件强制调整为具有相同的大小,而不管其首选大小、最小大小或最大大小如何。
void
GroupLayout.Component... components)
将指定组件强制调整为沿指定轴具有相同的大小,而不管其首选大小、最小大小或最大大小如何。
void
void
void
CellRendererPane.Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h)
调用 this.paintComponent(g, c, p, x, y, w, h, false)。
static void
SwingUtilities.Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h)
在指定的 Graphics 上绘制组件。
void
CellRendererPane.Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h,
boolean shouldValidate)
在图形对象 g 上绘制一个单元格渲染器组件 c。
void
static void
void
ImageIcon.Component c,
Graphics g,
int x,
int y)
绘制图标。
void
Icon.Component c,
Graphics g,
int x,
int y)
在指定位置上绘制图标。
void
JTextField 中进行粘贴。
void
SpringLayout.String e1,
Component c1,
int pad,
String e2,
Component c2)
将组件 c1 的边 e1 连接到组件 c2 的边 e2,边与边之间的距离固定。
void
c1 的边 e1 连接到组件 c2 的边 e2。
void
void
JTabbedPane.Component component)
从 JTabbedPane 中移除指定 Component。
void
void
JViewport.Component child)
移除 Viewport 的一个轻量子对象。
void
JSplitPane.Component component)
移除窗格中的子组件 component。
void
void
c。
void
JInternalFrame.Component comp)
从此容器中移除指定组件。
void
void
Component 的通知。
void
JSpinner.DefaultEditor.Component child)
此 LayoutManager 方法不执行任何操作。
void
void
void
void
void
void
GroupLayout.Component existingComponent,
Component newComponent)
使用新的组件替代现有组件。
void
void
void
JTabbedPane.Component component)
将 index 位置的组件设置为 component。
void
JDesktopPane.Component comp,
int index)
将指定组件移动到容器中指定的 z 顺序索引。
void
JScrollPane.String key,
Component corner)
添加一个将显示在一个滚动窗格角中的子级,如果有空间的话。
void
void
glassPane 属性。
void
glassPane 属性。
void
JInternalFrame.Component glass)
设置此 JInternalFrame 的 glassPane 属性。
void
Component 设置为此根窗格的玻璃窗格。
void
glassPane 属性。
void
RootPaneContainer.Component glassPane)
glassPane 始终为 rootPane 的第一个子组件,rootPanes 布局管理器确保它始终与 rootPane 一样大。
void
GroupLayout.Component component,
Boolean honorsVisibility)
设置确定组件的大小和位置时是否要考虑组件的可见性。
void
JPopupMenu.Component invoker)
设置此弹出菜单的调用者,即弹出菜单在其中显示的组件。
void
void
JLayeredPane.Component c,
int layer)
设置指定组件的 layer 属性,使之成为该层中最底部的组件。
void
JLayeredPane.Component c,
int layer,
int position)
为指定组件设置 layer 属性,并设置它在该层中的位置。
void
void
已过时。 从 1.4 版本开始,由 FocusTraversalPolicy 取代
void
JLayeredPane.Component c,
int position)
将该组件移到当前层中的 position 处,其中 0 表示该层中的最顶层位置,-1 表示最底层位置。
void
void
void
void
void
void
JTabbedPane.Component component)
设置负责呈现指定选项卡标题的组件。
void
void
JViewport.Component view)
设置 JViewport 的一个轻量子对象 (view),可以为 null。
void
void
JPopupMenu.Component invoker,
int x,
int y)
在组件调用者的坐标空间中的位置 X、Y 显示弹出菜单。
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 参数确定。
int
JFileChooser.Component parent,
String approveButtonText)
弹出具有自定义 approve 按钮的自定义文件选择器对话框。
static Color
JColorChooser.Component component,
String title,
Color initialColor)
显示有模式的颜色选取器,在隐藏对话框之前一直阻塞。
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 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 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 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)
调出一个显示信息的对话框,为其指定了所有参数。
int
static int
JOptionPane.Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
调出一个带有指定图标的对话框,其中的初始选择由 initialValue 参数确定,选项数由 optionType 参数确定。
int
static void
updateUI() -- 也就是说,通过当前外观初始化其 UI 属性。
static Spring
minimum、preferred、maximum 和 value 属性由所提供组件的 minimumSize、preferredSize、maximumSize 和 size 属性的宽度定义。
static Window
c 的第一个 Window 祖先;如果 c 未包含在 Window 内,则返回 null。