软件包 | 描述 |
---|---|
java.applet |
提供创建一个小程序所需的类和一个小程序用来与它的小程序上下文进行通信的类。
|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
java.awt.event |
用于处理不同类型的事件由AWT组件提供的接口和类发射。
|
java.awt.im |
提供输入法框架的类和接口。
|
java.beans |
包含的类发展豆相关--基于JavaBeans组件™架构。
|
java.beans.beancontext |
提供有关豆上下文的类和接口。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.border |
提供用于绘图的类和接口,以绘制一个摆动组件的专门边框。
|
javax.swing.colorchooser |
包含由
JColorChooser 组件使用的类和接口。
|
javax.swing.event |
提供由摆动组件触发的事件。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.plaf.synth |
它是一个可更换皮肤的外观和感觉的绘画是授。
|
javax.swing.table |
处理
javax.swing.JTable 提供类和接口。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Class and Description |
---|---|
class |
Applet
一个小程序,是一个不打算自己运行的小程序,而是被嵌入到另一个应用程序中。
|
Modifier and Type | Class and Description |
---|---|
class |
Button
这个类创建一个标记按钮。
|
class |
Canvas
一个
Canvas 组件是一个空白的矩形区域的屏幕上的应用程序可以绘制或从应用程序可以捕获用户输入事件。
|
class |
Checkbox
复选框是一种图形化的组件,可以是一个“开”或“关”(
true )(
false )状态。
|
class |
Choice
的
Choice 类提出了选择弹出菜单。
|
class |
Container
一个通用的抽象窗口工具包(AWT)容器对象的一个组成部分,也可以包含其他的AWT组件。
|
class |
Dialog
对话框是一个带有标题和边框的顶层窗口,通常用于从用户输入某种形式的输入。
|
class |
FileDialog
的
FileDialog 类显示一个对话框,用户可以选择一个文件。
|
class |
Frame
一个
Frame 是一个带有标题和边框的顶层窗口。
|
class |
Label
一个
Label 对象是放置在一个容器组件的文本。
|
class |
List
的
List 组件为用户提供了一个滚动列表项的文字。
|
class |
Panel
Panel 是最简单的容器类。
|
class |
Scrollbar
的
Scrollbar 类体现了一个滚动条,一个熟悉的用户界面对象。
|
class |
ScrollPane
一个容器类,它实现了一个单独的子组件的自动水平和/或垂直滚动。
|
class |
TextArea
一个
TextArea 对象是一个多行显示文本区域。
|
class |
TextComponent
TextComponent 类的任何组件,允许一些文本编辑类。
|
class |
TextField
一个
TextField 对象是一个文本组件,允许一个单行文本的编辑。
|
class |
Window
一个
Window 对象是一个没有国界,没有菜单栏的顶层窗口。
|
Modifier and Type | Field and Description |
---|---|
protected Hashtable<Component,GridBagConstraints> |
GridBagLayout.comptable
哈希表维护组件及其gridbag约束之间的关系。
|
Modifier and Type | Method and Description |
---|---|
Component |
Container.add(Component comp)
将指定的组件,该容器的一端。
|
Component |
Container.add(Component comp, int index)
在指定位置将指定的组件添加到该容器中。
|
Component |
Container.add(String name, Component comp)
将指定的组件添加到该容器中。
|
Component |
Container.findComponentAt(int x, int y)
定位包含指定位置的可见子组件。
|
Component |
Container.findComponentAt(Point p)
定位包含指定点的可见子组件。
|
Component |
Container.getComponent(int n)
得到n组件容器。
|
Component |
ContainerOrderFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
abstract Component |
FocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
Container.getComponentAt(int x, int y)
定位包含X、Y位置的组件。
|
Component |
Component.getComponentAt(int x, int y)
确定该组件或其直接子组件包含(nullx, nully)的位置,如果是这样,返回包含组件。
|
Component |
Container.getComponentAt(Point p)
获取包含指定点的组件。
|
Component |
Component.getComponentAt(Point p)
返回包含指定点的组件或子组件。
|
Component |
ContainerOrderFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
abstract Component |
FocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
Component[] |
Container.getComponents()
获取此容器中的所有组件。
|
Component |
ContainerOrderFocusTraversalPolicy.getDefaultComponent(Container aContainer)
返回焦点的默认组件。
|
abstract Component |
FocusTraversalPolicy.getDefaultComponent(Container aContainer)
返回焦点的默认组件。
|
Component |
ContainerOrderFocusTraversalPolicy.getFirstComponent(Container aContainer)
返回遍历循环中的第一个组件。
|
abstract Component |
FocusTraversalPolicy.getFirstComponent(Container aContainer)
返回遍历循环中的第一个组件。
|
Component |
Window.getFocusOwner()
返回该窗口的子组件,该窗口的子组件,如果此窗口为焦点,则返回空值,否则。
|
Component |
KeyboardFocusManager.getFocusOwner()
返回焦点所有者,如果焦点所有者在与调用线程相同的上下文中。
|
protected Component |
KeyboardFocusManager.getGlobalFocusOwner()
返回焦点所有者,即使调用线程在不同的上下文中比焦点所有者。
|
protected Component |
KeyboardFocusManager.getGlobalPermanentFocusOwner()
返回永久焦点所有者,即使调用线程在不同的上下文中,而不是永久焦点所有者。
|
Component |
FocusTraversalPolicy.getInitialComponent(Window window)
返回第一次可见的窗口时,该组件的接收焦点的组件。
|
Component |
ContainerOrderFocusTraversalPolicy.getLastComponent(Container aContainer)
返回遍历周期中的最后一个组件。
|
abstract Component |
FocusTraversalPolicy.getLastComponent(Container aContainer)
返回遍历周期中的最后一个组件。
|
Component |
BorderLayout.getLayoutComponent(Container target, Object constraints)
返回对应于给定的约束位置基于目标
Container 的元件定位组件。
|
Component |
BorderLayout.getLayoutComponent(Object constraints)
获取使用给定约束添加的组件
|
Component |
Window.getMostRecentFocusOwner()
返回此窗口的子组件,该窗口将在该窗口集中时接收焦点。
|
Component |
KeyboardFocusManager.getPermanentFocusOwner()
返回永久焦点所有者,如果永久焦点所有者在与调用线程相同的上下文中。
|
Component |
Container.locate(int x, int y)
过时的。
作为JDK 1.1版本,取而代之的
getComponentAt(int, int) 。
|
Component |
Component.locate(int x, int y)
过时的。
作为JDK 1.1版本,取而代之的getcomponentat(int,int)。
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
ContainerOrderFocusTraversalPolicy.accept(Component aComponent)
确定一个组件是否是新的焦点所有者的可接受的选择。
|
protected boolean |
DefaultFocusTraversalPolicy.accept(Component aComponent)
确定一个组件是否是新的焦点所有者的可接受的选择。
|
Component |
Container.add(Component comp)
将指定的组件,该容器的一端。
|
Component |
Container.add(Component comp, int index)
在指定位置将指定的组件添加到该容器中。
|
void |
Container.add(Component comp, Object constraints)
将指定的组件添加到这个容器的结尾。
|
void |
Container.add(Component comp, Object constraints, int index)
在指定的索引处添加指定的约束,将指定的组件添加到这个容器中。
|
Component |
Container.add(String name, Component comp)
将指定的组件添加到该容器中。
|
protected void |
ScrollPane.addImpl(Component comp, Object constraints, int index)
将指定的组件添加到这个滚动窗格容器中。
|
protected void |
Container.addImpl(Component comp, Object constraints, int index)
在指定的索引处将指定的组件添加到该容器中。
|
void |
GridBagLayout.addLayoutComponent(Component comp, Object constraints)
添加指定的组件的布局,使用指定的
constraints 对象。
|
void |
LayoutManager2.addLayoutComponent(Component comp, Object constraints)
使用指定的约束对象将指定的组件添加到布局中。
|
void |
BorderLayout.addLayoutComponent(Component comp, Object constraints)
使用指定的约束对象将指定的组件添加到布局中。
|
void |
CardLayout.addLayoutComponent(Component comp, Object constraints)
将指定的组件添加到该卡布局的内部表中。
|
void |
GridBagLayout.addLayoutComponent(String name, Component comp)
没有效果,因为这个布局管理器不使用一个每个组件字符串。
|
void |
BorderLayout.addLayoutComponent(String name, Component comp)
过时的。
取而代之的
addLayoutComponent(Component, Object) 。
|
void |
FlowLayout.addLayoutComponent(String name, Component comp)
将指定的组件添加到布局中。
|
void |
GridLayout.addLayoutComponent(String name, Component comp)
将指定的组件添加到布局中的指定名称。
|
void |
CardLayout.addLayoutComponent(String name, Component comp)
过时的。
取而代之的
addLayoutComponent(Component, Object) 。
|
void |
LayoutManager.addLayoutComponent(String name, Component comp)
如果布局管理器使用的每一个组件串,添加成分
comp 的布局,将其与指定的字符串
name 。
|
protected java.awt.peer.LightweightPeer |
Toolkit.createComponent(Component target)
创建一个组件或容器的对等体。
|
<T extends DragGestureRecognizer> |
Toolkit.createDragGestureRecognizer(类<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
创建一个具体的平台依赖性,要求draggesturerecognizer抽象类的子类,并与DragSource联合,组成和DragGestureListener指定。
|
protected void |
DefaultKeyboardFocusManager.dequeueKeyEvents(long after, Component untilFocused)
正常调度当前的焦点所有者所有关键场次的队列是因为打电话
enqueueKeyEvents 具有相同的时间戳和组件发布。
|
protected abstract void |
KeyboardFocusManager.dequeueKeyEvents(long after, Component untilFocused)
由AWT打电话通知keyboardfocusmanager应该取消延迟调度关键场次。
|
protected void |
DefaultKeyboardFocusManager.discardKeyEvents(Component comp)
丢弃所有关键场次的队列是因为一个或多个电话
enqueueKeyEvents 与指定的组件,或它的一个后裔。
|
protected abstract void |
KeyboardFocusManager.discardKeyEvents(Component comp)
由AWT打电话通知keyboardfocusmanager应该取消延迟调度关键场次。
|
protected void |
DefaultKeyboardFocusManager.enqueueKeyEvents(long after, Component untilFocused)
延迟调度关键场次到指定的组件成为焦点的主人。
|
protected abstract void |
KeyboardFocusManager.enqueueKeyEvents(long after, Component untilFocused)
由AWT通知keyboardfocusmanager应该延迟调度关键场次到指定的组件成为焦点的主人。
|
void |
DefaultKeyboardFocusManager.focusNextComponent(Component aComponent)
主要的组件后,组件,通常是基于一个focustraversalpolicy。
|
abstract void |
KeyboardFocusManager.focusNextComponent(Component aComponent)
主要的组件后,组件,通常是基于一个focustraversalpolicy。
|
void |
DefaultKeyboardFocusManager.focusPreviousComponent(Component aComponent)
主要的组件在组件,通常是基于一个focustraversalpolicy。
|
abstract void |
KeyboardFocusManager.focusPreviousComponent(Component aComponent)
主要的组件在组件,通常是基于一个focustraversalpolicy。
|
Component |
ContainerOrderFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
abstract Component |
FocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
ContainerOrderFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
abstract Component |
FocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
int |
Container.getComponentZOrder(Component comp)
返回容器内组件的顺序索引。
|
GridBagConstraints |
GridBagLayout.getConstraints(Component comp)
获取指定组件的约束条件。
|
Object |
BorderLayout.getConstraints(Component comp)
获取指定组件的约束条件
|
protected static Container |
Toolkit.getNativeContainer(Component c)
给本地节点查询本地组件的本地容器的能力(例如,直接父可能是轻量级的)。
|
boolean |
Container.isAncestorOf(Component c)
检查该组件是否包含在该容器的组件层次结构中。
|
protected GridBagConstraints |
GridBagLayout.lookupConstraints(Component comp)
检索指定组件的约束。
|
void |
DefaultKeyboardFocusManager.processKeyEvent(Component focusedComponent, KeyEvent e)
此方法启动一个焦点遍历操作keyEvent表示当且仅当一个指定的focusedcomponent焦点遍历关键。
|
abstract void |
KeyboardFocusManager.processKeyEvent(Component focusedComponent, KeyEvent e)
此方法启动一个焦点遍历操作keyEvent表示当且仅当一个指定的focusedcomponent焦点遍历关键。
|
void |
KeyboardFocusManager.redispatchEvent(Component target, AWTEvent e)
重新分派在这样一种方式,awt事件调度不递归请求,keyboardfocusmanager一awtevent,或安装任何keyeventdispatchers,调度事件再次。
|
void |
Container.remove(Component comp)
从该容器中移除指定的组件。
|
void |
GridBagLayout.removeLayoutComponent(Component comp)
从该布局中移除指定的组件。
|
void |
BorderLayout.removeLayoutComponent(Component comp)
从这个边界布局中移除指定的组件。
|
void |
FlowLayout.removeLayoutComponent(Component comp)
从布局中移除指定的组件。
|
void |
GridLayout.removeLayoutComponent(Component comp)
从布局中移除指定的组件。
|
void |
CardLayout.removeLayoutComponent(Component comp)
从布局中移除指定的组件。
|
void |
LayoutManager.removeLayoutComponent(Component comp)
从布局中移除指定的组件。
|
void |
Container.setComponentZOrder(Component comp, int index)
将指定的组件在容器中的指定顺序索引。
|
void |
GridBagLayout.setConstraints(Component comp, GridBagConstraints constraints)
在该布局中设置指定组件的约束条件。
|
protected void |
KeyboardFocusManager.setGlobalFocusOwner(Component focusOwner)
设置焦点所有者。
|
protected void |
KeyboardFocusManager.setGlobalPermanentFocusOwner(Component permanentFocusOwner)
设置永久焦点所有者。
|
void |
Window.setLocationRelativeTo(Component c)
根据下列情况,将窗口的位置设置为指定的组件。
|
void |
PopupMenu.show(Component origin, int x, int y)
显示在X的弹出菜单,Y位置相对于来源成分。
|
void |
DefaultKeyboardFocusManager.upFocusCycle(Component aComponent)
移动焦点一个焦点遍历周期。
|
abstract void |
KeyboardFocusManager.upFocusCycle(Component aComponent)
移动焦点一个焦点遍历周期。
|
Constructor and Description |
---|
MediaTracker(Component comp)
创建一个媒体跟踪来跟踪给定组件的图像。
|
Modifier and Type | Field and Description |
---|---|
protected Component |
DragGestureRecognizer.component
与此相关的
Component
DragGestureRecognizer 。
|
Modifier and Type | Method and Description |
---|---|
Component |
DragGestureEvent.getComponent()
返回与此相关的
Component
DragGestureEvent 。
|
Component |
DropTarget.getComponent()
获取与此相关的
Component
DropTarget 。
|
Component |
DragGestureRecognizer.getComponent()
这个方法返回
Component 是“观察”的
DragGestureRecognizer 拖动起始姿势。
|
Component |
DragSourceContext.getComponent()
返回与此相关的
Component
DragSourceContext 。
|
Component |
DropTargetContext.getComponent()
此方法返回与此相关的
Component
DropTargetContext 。
|
Modifier and Type | Method and Description |
---|---|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现这
DragSource
DragGestureRecognizer 默认的抽象类,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
<T extends DragGestureRecognizer> |
DragSource.createDragGestureRecognizer(类<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现指定的抽象类
DragGestureRecognizer ,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
protected DropTarget.DropTargetAutoScroller |
DropTarget.createDropTargetAutoScroller(Component c, Point p)
创建一个嵌入式autoscroller
|
void |
DropTarget.setComponent(Component c)
注:此接口允许一个的方式有两种,一部分droptarget安全协会:
component.setDropTarget(droptarget); 或
droptarget.setComponent(component);
|
void |
DragGestureRecognizer.setComponent(Component c)
设置组件的draggesturerecognizer与registerlisteners()和unregisterlisteners()相关的被称为作为一个副作用是适当的。
|
Constructor and Description |
---|
DragGestureRecognizer(DragSource ds, Component c)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,和
Component 这
DragGestureRecognizer 应该“观察”拖动起始姿势。
|
DragGestureRecognizer(DragSource ds, Component c, int sa)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,这
DragGestureRecognizer 应该“观察”引发的
Component 拖动手势,和行动(S)支持这个拖放操作。
|
DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,这
DragGestureRecognizer 应该“观察”引发的
Component 拖动手势,动作(S)这个拖放操作的支持,和
DragGestureListener 通知一旦拖启动手势已经被发现。
|
DropTarget(Component c, DropTargetListener dtl)
创建一个
DropTarget 给予
Component 本身相关联,与
DropTargetListener 处理事件处理。
|
DropTarget(Component c, int ops, DropTargetListener dtl)
创建一个
DropTarget 给予
Component 本身相关联,表示默认接受的行动
int (S)的支持,和
DropTargetListener 处理事件处理。
|
DropTarget(Component c, int ops, DropTargetListener dtl, boolean act)
创建一个
DropTarget 给予
Component 本身相关联,表示默认接受的行动
int (S)的支持,一个
DropTargetListener 处理事件处理和
boolean 表示如果
DropTarget 目前正在接受滴。
|
DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)
创建一个新的droptarget给予
Component 本身相关联,表示默认接受的行动
int (S)的支持,一个
DropTargetListener 处理事件的处理,一个
boolean 表示如果
DropTarget 目前正在接受滴,和
FlavorMap 使用(或默认为空值
FlavorMap )。
|
DropTargetAutoScroller(Component c, Point p)
构建一个droptargetautoscroller
|
MouseDragGestureRecognizer(DragSource ds, Component c)
构建一个新的
MouseDragGestureRecognizer 给
Component C
DragSource ,和
Component 观察。
|
MouseDragGestureRecognizer(DragSource ds, Component c, int act)
构建一个新的
MouseDragGestureRecognizer 给
Component C的
DragSource ,
Component 观察和行动(S)这个拖动操作允许的。
|
MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
构建一个新的
MouseDragGestureRecognizer 给
Component C的
DragSource ,
Component 观察、行动(S)这个拖动操作允许,和
DragGestureListener 通知时,拖动手势检测。
|
Modifier and Type | Method and Description |
---|---|
Component |
HierarchyEvent.getChanged()
返回更改了层次结构顶部的组件。
|
Component |
ContainerEvent.getChild()
返回事件影响的组件。
|
Component |
HierarchyEvent.getComponent()
返回事件的发起人。
|
Component |
ComponentEvent.getComponent()
返回事件的发起人。
|
Component |
FocusEvent.getOppositeComponent()
返回在这个焦点变化中所涉及的其他组件。
|
Constructor and Description |
---|
ComponentEvent(Component source, int id)
构建了一个
ComponentEvent 对象。
|
ContainerEvent(Component source, int id, Component child)
构建了一个
ContainerEvent 对象。
|
FocusEvent(Component source, int id)
构建了一个
FocusEvent 对象确定为重点的永久性改变。
|
FocusEvent(Component source, int id, boolean temporary)
构建了一个
FocusEvent 对象并确定是否改变是暂时的。
|
FocusEvent(Component source, int id, boolean temporary, Component opposite)
构建一个与指定的临时状态,相反
Component
FocusEvent 对象。
|
HierarchyEvent(Component source, int id, Component changed, Container changedParent)
构建了一个
HierarchyEvent 对象确定在
Component 层次变化。
|
HierarchyEvent(Component source, int id, Component changed, Container changedParent, long changeFlags)
构建了一个
HierarchyEvent 对象确定在
Component 层次变化。
|
InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent 型,文字,符号,和visibleposition。
|
InputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent 类型,时间,文字,符号,和visibleposition。
|
InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent 型,符号,和visibleposition。
|
KeyEvent(Component source, int id, long when, int modifiers, int keyCode)
过时的。
在JDK1.1
|
KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar)
构建了一个
KeyEvent 对象。
|
KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation)
构建了一个
KeyEvent 对象。
|
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
构建了一个具有指定源组件,
MouseEvent 对象类型、修饰符、坐标,点击数,和popuptrigger旗。
|
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)
构建了一个具有指定源组件,
MouseEvent 对象类型、时间、改性剂、坐标,点击数,popuptrigger旗,和按钮的数量。
|
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button)
构建了一个具有指定源组件,
MouseEvent 对象类型、时间、改性剂、坐标,绝对坐标,点击数,popuptrigger旗,和按钮的数量。
|
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)
构建了一个具有指定源组件,
MouseWheelEvent 对象类型、修饰符、坐标、滚动式、滚动的量,和车轮的转动。
|
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)
构建了一个具有指定源组件,
MouseWheelEvent 对象类型、修饰符、坐标,绝对坐标,涡旋,涡旋的数量,和车轮的转动。
|
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation, double preciseWheelRotation)
构建了一个具有指定源组件,
MouseWheelEvent 对象类型、修饰符、坐标,绝对坐标,涡旋,涡旋的数量,和车轮的转动。
|
PaintEvent(Component source, int id, Rectangle updateRect)
构建了一个具有指定源组件和
PaintEvent 对象类型。
|
Modifier and Type | Method and Description |
---|---|
void |
InputContext.removeNotify(Component client)
当输入的背景下,一个客户端组件已从其层次结构拆除,或输入法支持已被禁用的组件。
|
Modifier and Type | Method and Description |
---|---|
Component |
PropertyEditor.getCustomEditor()
一个属性可以提供一个全面的自定义组件的编辑其属性值。
|
Component |
PropertyEditorSupport.getCustomEditor()
一个属性可以选择提供完全自定义组件,编辑其属性值。
|
Modifier and Type | Method and Description |
---|---|
Component |
BeanContextChildComponentProxy.getComponent()
获取与此相关的
java.awt.Component
BeanContextChild 。
|
Modifier and Type | Class and Description |
---|---|
class |
JLayer<V extends Component>
JLayer 是Swing组件使您能够实现各种先进的涂装效果以及接收境内产生的所有
AWTEvent s通知通用装饰。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractButton
定义按钮和菜单项的常见行为。
|
class |
Box
一个轻量级容器使用BoxLayout对象作为它的布局管理器。
|
static class |
Box.Filler
一个参与布局的轻量级组件的实现,但没有视图。
|
class |
CellRendererPane
这类插入单元格渲染和使用它们的组件之间。
|
class |
DefaultListCellRenderer
在列表中呈现一个项目。
|
static class |
DefaultListCellRenderer.UIResource
defaultlistcellrenderer uiresource子类实现的。
|
class |
JApplet
一个扩展版本,增加了对
java.applet.Applet JFC/Swing组件体系结构支持。
|
class |
JButton
一个“推”按钮的实现。
|
class |
JCheckBox
一个复选框的实现,可以选择或取消选择一项,并显示其状态的用户。
|
class |
JCheckBoxMenuItem
一个菜单项,可以选择或取消选择。
|
class |
JColorChooser
JColorChooser 提供一块设计为允许用户操作和选择颜色的控件。
|
class |
JComboBox<E>
的一个组成部分,结合一个按钮或可编辑的字段和一个下拉列表。
|
class |
JComponent
除顶层容器外的所有摆动组件的基类。
|
class |
JDesktopPane
用于创建多个文档接口或虚拟桌面的容器。
|
class |
JDialog
创建对话框窗口的主要类。
|
class |
JEditorPane
一个编辑各种内容的文本组件。
|
class |
JFileChooser
JFileChooser 提供用户选择一个文件的一个简单的机制。
|
class |
JFormattedTextField
JFormattedTextField 延伸
JTextField 添加格式任意值的支持,以及检索一个特定的对象,一旦用户编辑文本。
|
class |
JFrame
一个扩展版本,增加了对
java.awt.Frame JFC/Swing组件体系结构支持。
|
class |
JInternalFrame
一个轻量级的对象,提供了许多土生土长的框架,特点包括拖动,关闭,成为一个图标,大小,标题显示,并支持菜单栏。
|
static class |
JInternalFrame.JDesktopIcon
这部分是图标化版本的
JInternalFrame 。
|
class |
JLabel
一个短文本字符串或图像的显示区域,或两者都有。
|
class |
JLayer<V extends Component>
JLayer 是Swing组件使您能够实现各种先进的涂装效果以及接收境内产生的所有
AWTEvent s通知通用装饰。
|
class |
JLayeredPane
JLayeredPane 增加深度到JFC/Swing容器,允许部分重叠,彼此需要的时候。
|
class |
JList<E>
显示对象列表的组件,并允许用户选择一个或多个项目。
|
class |
JMenu
一个菜单的实现,包含
JMenuItem s时显示用户选择的
JMenuBar 项弹出窗口。
|
class |
JMenuBar
菜单栏的实现。
|
class |
JMenuItem
菜单中的一个项目的实现。
|
class |
JOptionPane
JOptionPane 容易弹出一个标准的对话框提示用户输入一个值或告诉他们的东西。
|
class |
JPanel
JPanel 是一个通用的轻量级容器。
|
class |
JPasswordField
JPasswordField 是轻量级的,允许一个单一的文本视图表明什么是型线的编辑,但不显示原始字符。
|
class |
JPopupMenu
一个弹出式菜单的实现--一个小窗口,弹出并显示一系列的选择。
|
static class |
JPopupMenu.Separator
一个弹出式菜单具体分离器。
|
class |
JProgressBar
视觉上显示某个任务进度的组件。
|
class |
JRadioButton
一个单选按钮的实现,可以选择或取消选择一项,并显示其状态的用户。
|
class |
JRadioButtonMenuItem
一个广播按钮菜单项的实现。
|
class |
JRootPane
一个轻量级的容器使用后
JFrame ,
JDialog ,
JWindow ,
JApplet 幕后,和
JInternalFrame 。
|
class |
JScrollBar
一个滚动条的实现。
|
class |
JScrollPane
提供了一个轻量级的可滚动视图。
|
protected class |
JScrollPane.ScrollBar
默认情况下
JScrollPane 创建滚动条,这个类的实例。
|
class |
JSeparator
JSeparator 实施分隔线-最常用的菜单项被分解成逻辑分组之间的分压器提供了一个通用的组件。
|
class |
JSlider
一个组件,允许用户通过滑动一个有界区间内的旋钮来选择一个值。
|
class |
JSpinner
一个单行输入字段,可以让用户从一个有序的序列中选择一个数字或一个对象值。
|
static class |
JSpinner.DateEditor
一
JSpinner 的模型是一个
SpinnerDateModel 编辑。
|
static class |
JSpinner.DefaultEditor
一个简单的基类为更专门的编辑显示模式的电流值与
JFormattedTextField 只读视图。
|
static class |
JSpinner.ListEditor
一
JSpinner 的模型是一个
SpinnerListModel 编辑。
|
static class |
JSpinner.NumberEditor
一
JSpinner 的模型是一个
SpinnerNumberModel 编辑。
|
class |
JSplitPane
JSplitPane 是用来划分两(只有两个)
Component s。
|
class |
JTabbedPane
通过在一个给定的标题和/或图标上点击一个标签,让用户在一组组件之间切换的组件。
|
class |
JTable
的
JTable 用于显示和编辑细胞常规二维表。
|
class |
JTextArea
一个
JTextArea 是多线区域显示文本。
|
class |
JTextField
JTextField 是轻量级的,允许编辑单行文本。
|
class |
JTextPane
一个可以标记的文本组件,可以用图形表示的属性标记。
|
class |
JToggleButton
一个两个国家的按钮的实现。
|
class |
JToolBar
JToolBar 提供一个组件,用于显示常用的
Action s或控制是有用的。
|
static class |
JToolBar.Separator
工具栏特定分隔符。
|
class |
JToolTip
用于显示一个组件的“提示”。
|
class |
JTree
|
class |
JViewport
“视口”或“分流”,通过它你看到背后的信息。
|
class |
JWindow
一个
JWindow 是一个容器,可以显示用户的桌面上的任何地方。
|
Modifier and Type | Field and Description |
---|---|
protected static Component |
ImageIcon.component
过时的。
自1.8
|
protected Component |
JTable.editorComp
如果编辑的
Component ,处理编辑。
|
protected Component |
JRootPane.glassPane
玻璃覆盖菜单栏和内容窗格中,因此它可以拦截鼠标动作等。
|
protected Component |
JLabel.labelFor |
protected Component |
JSplitPane.leftComponent
左或顶部组件。
|
protected Component |
ScrollPaneLayout.lowerLeft
该组件显示在左下角。
|
protected Component |
JScrollPane.lowerLeft
该组件显示在左下角。
|
protected Component |
ScrollPaneLayout.lowerRight
组件显示在右下角。
|
protected Component |
JScrollPane.lowerRight
组件显示在右下角。
|
protected Component |
JSplitPane.rightComponent
右或底部组件。
|
protected Component |
ScrollPaneLayout.upperLeft
该组件显示在左上角。
|
protected Component |
JScrollPane.upperLeft
该组件显示在左上角。
|
protected Component |
ScrollPaneLayout.upperRight
组件显示在右上角。
|
protected Component |
JScrollPane.upperRight
组件显示在右上角。
|
Modifier and Type | Method and Description |
---|---|
Component |
JTabbedPane.add(Component component)
增加了一个选项卡标题默认为的是叫
component.getName 结果的组件的名称
component 。
|
Component |
JMenu.add(Component c)
添加一个组件到这个菜单的末尾。
|
Component |
JTabbedPane.add(Component component, int index)
将在指定的选项卡索引和标签标题的默认组件名称的一
component 。
|
Component |
JMenu.add(Component c, int index)
在指定位置将指定的组件添加到该容器中。
|
Component |
JTabbedPane.add(String title, Component component)
增加了一个指定的选项卡标题
component 。
|
protected Component |
ScrollPaneLayout.addSingletonComponent(Component oldC, Component newC)
移除现有组件。
|
Component |
MenuSelectionManager.componentForPoint(Component source, Point sourcePoint)
返回当前选定的路径包含sourcepoint组件。
|
protected Component |
JRootPane.createGlassPane()
通过构造函数的方法来创建默认
glassPane 。
|
static Component |
Box.createGlue()
创建一个不可见的“胶水”组件,它可以在一个框中,其可见的组件有一个最大宽度(对于一个水平框)或高度(对于一个垂直框)。
|
static Component |
Box.createHorizontalGlue()
创建一个水平胶水组件。
|
static Component |
Box.createHorizontalStrut(int width)
创建一个不可见的,固定的宽度组件。
|
static Component |
Box.createRigidArea(Dimension d)
创建一个总是指定大小的看不见的组件。
|
static Component |
Box.createVerticalGlue()
创建一个垂直的胶水组件。
|
static Component |
Box.createVerticalStrut(int height)
创建一个不可见的,固定的高度组件。
|
static Component |
SwingUtilities.findFocusOwner(Component c)
过时的。
截至1.4日,由
KeyboardFocusManager.getFocusOwner() 。
|
Component |
JSplitPane.getBottomComponent()
返回下面的组件,或分隔符的右边。
|
Component |
JMenuBar.getComponent()
实现的是一个
MenuElement 。
|
Component |
DefaultCellEditor.getComponent()
返回编辑器组件的引用。
|
Component |
JMenu.getComponent()
返回用于油漆这
MenuElement 的
java.awt.Component 。
|
Component |
TransferHandler.TransferSupport.getComponent()
返回此传输的目标组件。
|
Component |
Renderer.getComponent()
返回用于渲染值的组件。
|
Component |
JPopupMenu.getComponent()
返回此
JPopupMenu 组件。
|
Component |
JMenuItem.getComponent()
返回该对象的
java.awt.Component 油漆。
|
Component |
MenuElement.getComponent()
这种方法应该返回用于油漆接收元件的java.awt.component。
|
Component |
LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent) |
Component |
JTabbedPane.getComponentAt(int index)
返回
index 组件。
|
Component |
JMenuBar.getComponentAtIndex(int i)
过时的。
取而代之的
getComponent(int i)
|
Component |
JPopupMenu.getComponentAtIndex(int i)
过时的。
|
Component |
JToolBar.getComponentAtIndex(int i)
返回指定索引处的组件。
|
Component |
LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
Component |
SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
Component |
DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent) |
Component[] |
JLayeredPane.getComponentsInLayer(int layer)
返回指定的层中的组件的数组。
|
Component |
ScrollPaneLayout.getCorner(String key)
返回指定角的
Component 。
|
Component |
JScrollPane.getCorner(String key)
返回指定的角落的组件。
|
protected Component |
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent()
获取单元格渲染器组件。
|
static Component |
SwingUtilities.getDeepestComponentAt(Component parent, int x, int y)
返回深可见后裔组成的
parent 包含位置
x ,
y 。
|
Component |
SortingFocusTraversalPolicy.getDefaultComponent(Container aContainer)
返回焦点的默认组件。
|
Component |
ComboBoxEditor.getEditorComponent()
返回此编辑器应添加到树层次结构的组件
|
Component |
JTable.getEditorComponent()
返回处理编辑会话的组件。
|
Component |
LayoutFocusTraversalPolicy.getFirstComponent(Container aContainer)
返回遍历循环中的第一个组件。
|
Component |
SortingFocusTraversalPolicy.getFirstComponent(Container aContainer)
返回遍历循环中的第一个组件。
|
Component |
DefaultFocusManager.getFirstComponent(Container aContainer) |
Component |
JInternalFrame.getFocusOwner()
如果这
JInternalFrame 活跃,返回子具有焦点。
|
Component |
JDialog.getGlassPane()
返回该对话框的
glassPane 对象。
|
Component |
JApplet.getGlassPane()
返回此Applet glasspane对象。
|
Component |
JFrame.getGlassPane()
返回此框架的
glassPane 对象。
|
Component |
JRootPane.getGlassPane()
返回当前这
JRootPane 玻璃窗格。
|
Component |
JWindow.getGlassPane()
返回该窗口的
glassPane Component 。
|
Component |
RootPaneContainer.getGlassPane()
返回glasspane。
|
Component |
JInternalFrame.getGlassPane()
返回此内部框架的玻璃窗格。
|
Component |
InternalFrameFocusTraversalPolicy.getInitialComponent(JInternalFrame frame)
返回组件应接收焦点时,JInternalFrame首次入选。
|
Component |
JPopupMenu.getInvoker()
收益是这个弹出式菜单的调用的组件。
|
Component |
JLabel.getLabelFor()
获取该组件,这是标签。
|
Component |
LayoutFocusTraversalPolicy.getLastComponent(Container aContainer)
返回遍历周期中的最后一个组件。
|
Component |
SortingFocusTraversalPolicy.getLastComponent(Container aContainer)
返回遍历周期中的最后一个组件。
|
Component |
DefaultFocusManager.getLastComponent(Container aContainer) |
Component |
JSplitPane.getLeftComponent()
返回到左(或以上)分隔符的组件。
|
Component |
DefaultListCellRenderer.getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
Component |
ListCellRenderer.getListCellRendererComponent(JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus)
返回一个已被配置为显示指定值的组件。
|
Component |
JMenu.getMenuComponent(int n)
返回的位置
n 组件。
|
Component[] |
JMenu.getMenuComponents()
返回的数组的子菜单
Component s。
|
Component |
JInternalFrame.getMostRecentFocusOwner()
这
JInternalFrame 返回子组件将接收焦点时,这
JInternalFrame 选择。
|
Component |
JComponent.getNextFocusableComponent()
过时的。
截至1.4日,由
FocusTraversalPolicy 。
|
Component |
JSplitPane.getRightComponent()
返回到右(或以下)的组件。
|
static Component |
SwingUtilities.getRoot(Component c)
返回当前组件树的根组件。
|
Component |
JTabbedPane.getSelectedComponent()
返回当前选择的组件,这个使用。
|
Component |
JTabbedPane.getTabComponentAt(int index)
返回
index Tab组件。
|
Component |
DefaultCellEditor.getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
实现了
TableCellEditor 接口。
|
Component |
JSplitPane.getTopComponent()
返回上面的组件,或分隔符的左边。
|
Component |
DefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
实现了
TreeCellEditor 接口。
|
static Component |
SwingUtilities.getUnwrappedView(JViewport viewport)
返回第一个
JViewport 的后裔,是不是
JLayer 实例。
|
Component |
JViewport.getView()
返回
JViewport 的一个孩子或
null 。
|
Component |
JTable.prepareEditor(TableCellEditor editor, int row, int column)
准备编辑查询数据模型的价值和选择在
row 细胞状态,
column 。
|
Component |
JTable.prepareRenderer(TableCellRenderer renderer, int row, int column)
准备渲染器通过查询数据模型的价值和选择在
row 细胞状态,
column 。
|
Modifier and Type | Method and Description |
---|---|
protected Comparator<? super Component> |
SortingFocusTraversalPolicy.getComparator()
返回将用于对焦点遍历周期中的组件进行排序的比较器。
|
protected Hashtable<Component,Integer> |
JLayeredPane.getComponentToLayer()
返回哈希映射组件层。
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
LayoutFocusTraversalPolicy.accept(Component aComponent)
确定指定的
Component 是一个可以接受的选择,作为新的焦点所有者。
|
protected boolean |
SortingFocusTraversalPolicy.accept(Component aComponent)
确定一个组件是否是新的焦点所有者的可接受的选择。
|
Component |
JTabbedPane.add(Component component)
增加了一个选项卡标题默认为的是叫
component.getName 结果的组件的名称
component 。
|
Component |
JMenu.add(Component c)
添加一个组件到这个菜单的末尾。
|
Component |
JTabbedPane.add(Component component, int index)
将在指定的选项卡索引和标签标题的默认组件名称的一
component 。
|
Component |
JMenu.add(Component c, int index)
在指定位置将指定的组件添加到该容器中。
|
void |
JTabbedPane.add(Component component, Object constraints)
增加了一个
component 的选项卡式窗格。
|
void |
JTabbedPane.add(Component component, Object constraints, int index)
将在指定的选项卡索引一个
component 。
|
Component |
JTabbedPane.add(String title, Component component)
增加了一个指定的选项卡标题
component 。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component)
增加了一个
Component 这
Group 。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component, int min, int pref, int max)
增加了一个
Component 这
Group 用指定的大小。
|
GroupLayout.Group |
GroupLayout.Group.addComponent(Component component)
增加了一个
Component 这
Group 。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addComponent(Component component)
增加了一个
Component 这
Group 。
|
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.addComponent(Component component)
增加了一个
Component 这
Group 。
|
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment)
增加了一个
Component 这
ParallelGroup 与指定的对齐。
|
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment, int min, int pref, int max)
增加了一个
Component 这
ParallelGroup 与指定的对齐和大小。
|
GroupLayout.Group |
GroupLayout.Group.addComponent(Component component, int min, int pref, int max)
增加了一个
Component 这
Group 用指定的大小。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addComponent(Component component, int min, int pref, int max)
增加了一个
Component 这
Group 用指定的大小。
|
GroupLayout.ParallelGroup |
GroupLayout.ParallelGroup.addComponent(Component component, int min, int pref, int max)
增加了一个
Component 这
Group 用指定的大小。
|
protected void |
CellRendererPane.addImpl(Component x, Object constraints, int index)
如果指定的组件已经是一个孩子然后我们不要做任何事情-堆叠顺序并不影响细胞的渲染器组件(cellrendererpane不画了)。
|
protected void |
JDialog.addImpl(Component comp, Object constraints, int index)
添加指定的孩子
Component 。
|
protected void |
JViewport.addImpl(Component child, Object constraints, int index)
集
JViewport 是一个轻量级的孩子,可
null 。
|
protected void |
JSplitPane.addImpl(Component comp, Object constraints, int index)
将指定的组件添加到这个拆分窗格中。
|
protected void |
JDesktopPane.addImpl(Component comp, Object constraints, int index)
在指定的索引处将指定的组件添加到该容器中。
|
protected void |
JApplet.addImpl(Component comp, Object constraints, int index)
添加指定的孩子
Component 。
|
protected void |
JFrame.addImpl(Component comp, Object constraints, int index)
添加指定的孩子
Component 。
|
protected void |
JRootPane.addImpl(Component comp, Object constraints, int index)
以强化玻璃组件为零的孩子的位置。
|
protected void |
JLayeredPane.addImpl(Component comp, Object constraints, int index) |
protected void |
JLayer.addImpl(Component comp, Object constraints, int index)
此方法不受支持的
JLayer 始终把
UnsupportedOperationException
|
protected void |
AbstractButton.addImpl(Component comp, Object constraints, int index)
添加指定的组件容器指定索引处,指的是
Container.addImpl(Component, Object, int) 对本方法的完整描述。
|
protected void |
JWindow.addImpl(Component comp, Object constraints, int index)
添加指定的孩子
Component 。
|
protected void |
JToolBar.addImpl(Component comp, Object constraints, int index)
如果一个
JButton 被添加,它最初设置被禁用。
|
protected void |
JInternalFrame.addImpl(Component comp, Object constraints, int index)
添加指定的孩子
Component 。
|
void |
OverlayLayout.addLayoutComponent(Component comp, Object constraints)
使用指定的约束对象将指定的组件添加到布局中。
|
void |
BoxLayout.addLayoutComponent(Component comp, Object constraints)
不使用这个类。
|
void |
JRootPane.RootLayout.addLayoutComponent(Component comp, Object constraints) |
void |
GroupLayout.addLayoutComponent(Component component, Object constraints)
通知,
Component 已添加到父容器。
|
void |
SpringLayout.addLayoutComponent(Component component, Object constraints)
如果
constraints 是
SpringLayout.Constraints 实例,将约束指定的组件。
|
void |
ScrollPaneLayout.addLayoutComponent(String s, Component c)
将指定的组件添加到布局中。
|
void |
JSpinner.DefaultEditor.addLayoutComponent(String name, Component child)
这
LayoutManager 方法不。
|
void |
OverlayLayout.addLayoutComponent(String name, Component comp)
将指定的组件添加到布局中。
|
void |
BoxLayout.addLayoutComponent(String name, Component comp)
不使用这个类。
|
void |
JRootPane.RootLayout.addLayoutComponent(String name, Component comp) |
void |
GroupLayout.addLayoutComponent(String name, Component component)
通知,
Component 已添加到父容器。
|
void |
ViewportLayout.addLayoutComponent(String name, Component c)
将指定的组件添加到布局中。
|
void |
SpringLayout.addLayoutComponent(String name, Component c)
没有效果,因为这个布局管理器不使用一个每个组件字符串。
|
protected Component |
ScrollPaneLayout.addSingletonComponent(Component oldC, Component newC)
移除现有组件。
|
void |
JTabbedPane.addTab(String title, Component component)
增加了一个
component 由
title 没有图标表示。
|
void |
JTabbedPane.addTab(String title, Icon icon, Component component)
增加了一个
component 由
title 和/或
icon 表示,也可
null 。
|
void |
JTabbedPane.addTab(String title, Icon icon, Component component, String tip)
增加了一个
component 和
tip 由
title 和/或
icon 表示,也可
null 。
|
boolean |
DefaultFocusManager.compareTabOrder(Component a, Component b) |
Component |
MenuSelectionManager.componentForPoint(Component source, Point sourcePoint)
返回当前选定的路径包含sourcepoint组件。
|
static MouseEvent |
SwingUtilities.convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
返回一个事件类似
sourceEvent 除了其X和Y的成员已经转换为
destination 的坐标系统。
|
static Point |
SwingUtilities.convertPoint(Component source, int x, int y, Component destination)
将点
(x,y) 在
source 坐标系统
destination 坐标系统。
|
static Point |
SwingUtilities.convertPoint(Component source, Point aPoint, Component destination)
将一个
aPoint 在
source 坐标系统的坐标系统
destination 。
|
static void |
SwingUtilities.convertPointFromScreen(Point p, Component c)
将一个点从屏幕坐标转换成一个组件的坐标系统
|
static void |
SwingUtilities.convertPointToScreen(Point p, Component c)
将一个点从一个组件的坐标系统转换为屏幕坐标。
|
static Rectangle |
SwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination)
将矩形
aRectangle 在
source 坐标系统的坐标系统
destination 。
|
protected JDialog |
JFileChooser.createDialog(Component parent)
创建并返回一个新的
JDialog 包装
this 围绕在
parent 的框架
parent 。
|
JDialog |
JOptionPane.createDialog(Component parentComponent, String title)
创建并返回一个新的
JDialog 包装
this 围绕在
parentComponent 的框架
parentComponent 。
|
static JDialog |
JColorChooser.createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)
创建并返回一个新的对话框包含指定
ColorChooser 窗格随着“确定”、“取消”和“重置”按钮。
|
JInternalFrame |
JOptionPane.createInternalFrame(Component parentComponent, String title)
创建并返回
JInternalFrame 实例。
|
static RepaintManager |
RepaintManager.currentManager(Component c)
返回给调用线程repaintmanager给定组件。
|
static Component |
SwingUtilities.findFocusOwner(Component c)
过时的。
截至1.4日,由
KeyboardFocusManager.getFocusOwner() 。
|
static Accessible |
SwingUtilities.getAccessibleAt(Component c, Point p)
返回包含在局部坐标
Point 的
Accessible 孩子,如果存在。
|
static Accessible |
SwingUtilities.getAccessibleChild(Component c, int i)
返回该对象的第N个儿童。
|
static int |
SwingUtilities.getAccessibleChildrenCount(Component c)
返回对象中可访问的儿童的数量。
|
static int |
SwingUtilities.getAccessibleIndexInParent(Component c)
获取此对象在其可访问父对象中的索引。
|
static AccessibleStateSet |
SwingUtilities.getAccessibleStateSet(Component c)
获取此对象的状态。
|
static Container |
SwingUtilities.getAncestorNamed(String name, Component comp)
方便的搜索方法在构件层次
comp 和返回的第一个目标
name 发现。
|
static Container |
SwingUtilities.getAncestorOfClass(类<?> c, Component comp)
方便的搜索方法在构件层次
comp 返回找到的第一个对象类
c 。
|
Component |
LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)
返回后,应确定接收焦点的组件。
|
Component |
DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent) |
Component |
LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
Component |
SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)
返回前一接收焦点的组件。
|
Component |
DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent) |
int |
JMenuBar.getComponentIndex(Component c)
返回指定组件的索引。
|
int |
JPopupMenu.getComponentIndex(Component c)
返回指定组件的索引。
|
int |
JToolBar.getComponentIndex(Component c)
返回指定组件的索引。
|
Spring |
SpringLayout.getConstraint(String edgeName, Component c)
返回弹簧控制组件的指定边缘与母公司的顶部或左边缘之间的距离。
|
SpringLayout.Constraints |
SpringLayout.getConstraints(Component c)
返回指定组件的约束。
|
static Component |
SwingUtilities.getDeepestComponentAt(Component parent, int x, int y)
返回深可见后裔组成的
parent 包含位置
x ,
y 。
|
static JDesktopPane |
JOptionPane.getDesktopPaneForComponent(Component parentComponent)
返回指定组件的桌面窗格。
|
static Frame |
JOptionPane.getFrameForComponent(Component parentComponent)
返回指定组件的
Frame 。
|
int |
JLayeredPane.getIndexOf(Component c)
返回指定组件的索引。
|
int |
JLayeredPane.getLayer(Component c)
返回指定组件的图层属性。
|
static JLayeredPane |
JLayeredPane.getLayeredPaneAbove(Component c)
方便的方法,返回包含指定组件的第一个JLayeredPane。
|
static Rectangle |
SwingUtilities.getLocalBounds(Component aComponent)
返回的矩形(0,0,界限。宽度范围。高度)的组件
aComponent
|
Image |
RepaintManager.getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)
返回屏幕缓冲区,应作为一种与组件
c 双缓冲。
|
Popup |
PopupFactory.getPopup(Component owner, Component contents, int x, int y)
创建一个包含组件的组件
owner
Popup
contents 。
|
int |
JLayeredPane.getPosition(Component c)
获取组件在其层内的相对位置。
|
static Component |
SwingUtilities.getRoot(Component c)
返回当前组件树的根组件。
|
static JRootPane |
SwingUtilities.getRootPane(Component c)
如果C是一个jrootpane后裔返回其jrootpane祖先。
|
static Container |
SwingUtilities.getUnwrappedParent(Component component)
返回的
component 不是
JLayer 实例的始祖。
|
Image |
RepaintManager.getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)
返回一个挥发性画外的缓冲区,应作为一个指定的组件
c 双缓冲。
|
static Window |
SwingUtilities.getWindowAncestor(Component c)
返回
c 第一
Window 祖先,或
null 如果
c 不包含在一
Window 。
|
static Spring |
Spring.height(Component c)
返回弹簧的最小,最大和首选,价值属性的最小值,preferredsize高度定义的组件,提供最大值和尺寸特性。
|
int |
JTabbedPane.indexOfComponent(Component component)
返回指定组件的制表符的索引。
|
int |
JTabbedPane.indexOfTabComponent(Component tabComponent)
返回指定标签组件的选项卡的索引。
|
void |
JPopupMenu.insert(Component component, int index)
在指定位置将指定的组件插入到菜单中。
|
void |
JTextPane.insertComponent(Component c)
将一个组件插入到文档中,作为当前选定内容的替换。
|
void |
JTabbedPane.insertTab(String title, Icon icon, Component component, String tip, int index)
插入一个新的标签,对于给定的组件,在给定的指标,由给定的标题和/或图标,均可
null 。
|
boolean |
MenuSelectionManager.isComponentPartOfCurrentMenu(Component c)
如果C是当前使用的菜单的一部分,返回真的
|
static boolean |
SwingUtilities.isDescendingFrom(Component a, Component b)
如果一个组件
a 下降从一个组件
b 返回
true
|
static boolean |
JComponent.isLightweightComponent(Component c)
如果这个组件是轻量级的,也就是说,如果它没有本地窗口系统对等,则返回真的。
|
boolean |
JMenu.isMenuComponent(Component c)
如果指定的组件中存在的子层次结构返回true。
|
void |
GroupLayout.linkSize(Component... components)
强制指定的组件具有相同的大小,无论它们的首选,最小或最大大小。
|
void |
GroupLayout.linkSize(int axis, Component... components)
强制指定的组件沿指定的轴具有相同的大小,而不管它们的首选,最小或最大大小。
|
void |
JLayeredPane.moveToBack(Component c)
将组件移动到当前层(位置- 1)中的组件的底部。
|
void |
JLayeredPane.moveToFront(Component c)
将组件移动到当前层(位置0)中的组件的顶部。
|
void |
CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
电话本。听(G,C,P,X,Y,W,H,假)。
|
static void |
SwingUtilities.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
描绘了一个组件来指定
Graphics 。
|
void |
CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
画一个细胞渲染组件C对图形对象的G.
|
void |
CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r)
电话本。paintcomponent()与矩形的X,Y,宽度,高度场。
|
static void |
SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r)
描绘了一个组件来指定
Graphics 。
|
void |
ImageIcon.paintIcon(Component c, Graphics g, int x, int y)
油漆图标。
|
void |
Icon.paintIcon(Component c, Graphics g, int x, int y)
在指定位置绘制图标。
|
void |
LookAndFeel.provideErrorFeedback(Component component)
当用户尝试调用无效的操作,如为不可编辑
JTextField 有焦点的粘贴。
|
void |
SpringLayout.putConstraint(String e1, Component c1, int pad, String e2, Component c2)
链接边缘
e1 组件
c1 组件的
c2 边缘
e2 ,与边缘之间的固定距离。
|
void |
SpringLayout.putConstraint(String e1, Component c1, Spring s, String e2, Component c2)
链接边缘
e1 组件的组件
c2 边缘
e2
c1 。
|
void |
JTabbedPane.remove(Component component)
从
JTabbedPane 移除指定的
Component 。
|
void |
JDialog.remove(Component comp)
从容器中移除指定的组件。
|
void |
JViewport.remove(Component child)
删除
Viewport s一个轻量级的孩子。
|
void |
JMenu.remove(Component c)
从这个菜单中移除组件
c 。
|
void |
JSplitPane.remove(Component component)
删除子组件,
component 从窗格。
|
void |
JDesktopPane.remove(Component comp)
从该容器中移除指定的组件。
|
void |
JApplet.remove(Component comp)
从容器中移除指定的组件。
|
void |
JFrame.remove(Component comp)
从容器中移除指定的组件。
|
void |
JLayer.remove(Component comp)
从该容器中移除指定的组件。
|
void |
JWindow.remove(Component comp)
从容器中移除指定的组件。
|
void |
JInternalFrame.remove(Component comp)
从容器中移除指定的组件。
|
void |
ScrollPaneLayout.removeLayoutComponent(Component c)
从布局中移除指定的组件。
|
void |
JSpinner.DefaultEditor.removeLayoutComponent(Component child)
这
LayoutManager 方法不。
|
void |
OverlayLayout.removeLayoutComponent(Component comp)
从布局中移除指定的组件。
|
void |
BoxLayout.removeLayoutComponent(Component comp)
不使用这个类。
|
void |
JRootPane.RootLayout.removeLayoutComponent(Component comp) |
void |
GroupLayout.removeLayoutComponent(Component component)
通知,
Component 已从父容器中移除。
|
void |
ViewportLayout.removeLayoutComponent(Component c)
从布局中移除指定的组件。
|
void |
SpringLayout.removeLayoutComponent(Component c)
移除与指定组件关联的约束。
|
void |
GroupLayout.replace(Component existingComponent, Component newComponent)
用新的替换现有组件。
|
void |
JSplitPane.setBottomComponent(Component comp)
设置下面的组件,或分隔符的右边。
|
void |
JScrollPane.setColumnHeaderView(Component view)
创建一个列标题的视口,如果必要的话,设置它的视图,然后添加列标题的滚动窗格视图。
|
void |
JTabbedPane.setComponentAt(int index, Component component)
设置组件在
index 到
component 。
|
void |
JDesktopPane.setComponentZOrder(Component comp, int index)
将指定的组件在容器中的指定顺序索引。
|
void |
JScrollPane.setCorner(String key, Component corner)
增加了一个孩子,会出现在一个滚动窗格的角落,如果有房间。
|
void |
JDialog.setGlassPane(Component glassPane)
集
glassPane 财产。
|
void |
JApplet.setGlassPane(Component glassPane)
集glasspane财产。
|
void |
JFrame.setGlassPane(Component glassPane)
集
glassPane 财产。
|
void |
JRootPane.setGlassPane(Component glass)
将这根窗格玻璃窗格中指定的
Component 。
|
void |
JWindow.setGlassPane(Component glassPane)
集
glassPane 财产。
|
void |
RootPaneContainer.setGlassPane(Component glassPane)
的glasspane始终是该rootpane第一个和rootpanes布局管理器确保它总是为rootpane一样大。
|
void |
JInternalFrame.setGlassPane(Component glass)
这一集
JInternalFrame 的
glassPane 财产。
|
void |
GroupLayout.setHonorsVisibility(Component component, Boolean honorsVisibility)
设置组件的可见性是否被考虑用于大小和定位。
|
void |
JPopupMenu.setInvoker(Component invoker)
设置此弹出菜单调用的组件,弹出的菜单将显示。
|
void |
JLabel.setLabelFor(Component c)
设置这是标签的组件。
|
void |
JLayeredPane.setLayer(Component c, int layer)
设置指定组件的层属性,使它在那层下面的组件。
|
void |
JLayeredPane.setLayer(Component c, int layer, int position)
为指定的组件设置图层属性,并设置在该图层中的位置。
|
void |
JSplitPane.setLeftComponent(Component comp)
将组件设置为左(或以上)分隔符。
|
void |
JComponent.setNextFocusableComponent(Component aComponent)
过时的。
截至1.4日,由
FocusTraversalPolicy
|
void |
JLayeredPane.setPosition(Component c, int position)
移动组件
position 当前层内,其中0是最高的位置在1层,最底层的位置。
|
void |
JSplitPane.setRightComponent(Component comp)
将组件设置为右(或以下)分隔符。
|
void |
JScrollPane.setRowHeaderView(Component view)
创建一个行标题视口,如果必要的话,设置它的视图,然后添加列标题的滚动窗格视图。
|
void |
JMenuBar.setSelected(Component sel)
设置当前选定的组件,将产生一一个更改为选择模型。
|
void |
JPopupMenu.setSelected(Component sel)
设置当前选定的组件,这将导致选择模型的更改。
|
void |
JTabbedPane.setSelectedComponent(Component c)
设置此使用选定的组件。
|
void |
JTabbedPane.setTabComponentAt(int index, Component component)
设置负责渲染指定选项卡的标题的组件。
|
void |
JSplitPane.setTopComponent(Component comp)
设置上面的组件,或分隔符的左边。
|
void |
JViewport.setView(Component view)
集
JViewport 是一个轻量级的孩子(
view ),可
null 。
|
void |
JScrollPane.setViewportView(Component view)
创建一个视口,如果必要的话,然后设置它的视图。
|
void |
JPopupMenu.show(Component invoker, int x, int y)
显示在弹出菜单的位置X,Y在组件调用坐标空间。
|
static int |
JOptionPane.showConfirmDialog(Component parentComponent, Object message)
带来了一个空是的选项对话框,空不和空取消;的称号,
选择一个选项。
|
static int |
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType)
提出了一个对话框,选择的数量是由
optionType 参数确定。
|
static int |
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
提出了一个对话框,选择的数量是由
optionType 参数决定,在
messageType 参数确定要显示的图标。
|
static int |
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
提出了一种具有指定图标的对话框,这里选择的数量是由
optionType 参数确定。
|
int |
JFileChooser.showDialog(Component parent, String approveButtonText)
POPs具有自定义审批按钮自定义文件选择对话框。
|
static Color |
JColorChooser.showDialog(Component component, String title, Color initialColor)
显示一个模态的颜色选择器对话框和块直到对话框被隐藏。
|
static String |
JOptionPane.showInputDialog(Component parentComponent, Object message)
显示问题的消息对话框要求用户输入
parentComponent 父。
|
static String |
JOptionPane.showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)
显示问题的消息对话框要求用户输入和父
parentComponent 。
|
static String |
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType)
显示一个对话框,要求用户输入从父的对话框有标题
title 和消息类型
messageType
parentComponent 。
|
static Object |
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
提示用户在一个阻塞对话框中输入初始选择,可能的选择,和所有其他选项可以指定。
|
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message)
提出了选择空是的内部对话面板,空不和空取消;的称号,
选择一个选项。
|
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)
提出了一种内部对话面板上选择的数量是由
optionType 参数确定。
|
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
提出了一个内部对话面板上选择的数量是由
optionType 参数决定,在
messageType 参数确定要显示的图标。
|
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
提出了用指定的图标内部对话面板,在选择的数量是由
optionType 参数确定。
|
static String |
JOptionPane.showInternalInputDialog(Component parentComponent, Object message)
显示内部问题消息对话框要求用户输入
parentComponent 父。
|
static String |
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)
显示内部对话从用户定位到与对话框有标题
title 和消息类型
messageType
parentComponent 请求输入。
|
static Object |
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
提示用户在一个阻塞的内部对话框中输入的输入,在初始选择,可能的选择,和所有其他选项可以指定。
|
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message)
弹出内部确认对话框。
|
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)
提出了一种显示消息使用由
messageType 参数确定的默认图标的内部对话面板。
|
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
调出一个显示消息的内部对话框,指定所有参数。
|
static int |
JOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
提出了用指定的图标内部对话面板,在最初的选择是由
initialValue 参数和选择的数量决定的
optionType 参数确定。
|
static void |
JOptionPane.showMessageDialog(Component parentComponent, Object message)
提出了一个名为“消息”的信息消息对话框。
|
static void |
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType)
将弹出一个对话框,显示一条消息,使用由
messageType 参数确定的默认图标。
|
static void |
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
显示一个对话框,显示一个消息,指定所有参数。
|
int |
JFileChooser.showOpenDialog(Component parent)
弹出“打开文件”文件选择对话框。
|
static int |
JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
提出了一种用指定的图标对话框,在最初的选择是由
initialValue 参数和选择的数量决定的
optionType 参数确定。
|
int |
JFileChooser.showSaveDialog(Component parent)
弹出一个“保存文件”文件选择对话框。
|
static void |
SwingUtilities.updateComponentTreeUI(Component c)
一个头脑简单的外观和感觉的变化:问树中的每个节点
updateUI() --也就是说,以目前看初始化界面性质和感觉。
|
static Spring |
Spring.width(Component c)
返回弹簧的最小,最大和首选,价值属性的最小值,preferredsize宽度定义的组件,提供最大值和尺寸特性。
|
static Window |
SwingUtilities.windowForComponent(Component c)
返回
c 第一
Window 祖先,或
null 如果
c 不包含在一
Window 。
|
Modifier and Type | Method and Description |
---|---|
protected void |
SortingFocusTraversalPolicy.setComparator(Comparator<? super Component> comparator)
设置将用于对焦点遍历周期中的组件进行排序的比较器。
|
Constructor and Description |
---|
Constraints(Component c)
创建一个合适的
x ,
y
Constraints 对象,
width 和
height 弹簧组件,
c 。
|
JScrollPane(Component view)
创建一个
JScrollPane ,显示指定组件的内容,在垂直和水平两个每当组件的内容大于视图滚动条出现。
|
JScrollPane(Component view, int vsbPolicy, int hsbPolicy)
创建一个
JScrollPane 显示在视口中的视图的位置可以用一对滚动条控制视图组件。
|
JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
创建具有指定方向和重绘风格的新
JSplitPane ,并与指定的成分。
|
JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)
创建具有指定方向和指定的组件一个新的
JSplitPane 。
|
Popup(Component owner, Component contents, int x, int y)
创建一个包含组件的组件
owner
Popup
contents 。
|
ProgressMonitor(Component parentComponent, Object message, String note, int min, int max)
构建一个图形对象显示进度,通常用一个矩形条过程接近完成。
|
ProgressMonitorInputStream(Component parentComponent, Object message, InputStream in)
构造一个对象来监视输入流的进度。
|
TransferSupport(Component component, Transferable transferable)
创建一个
TransferSupport 与
isDrop()
false 为给定的组件和
Transferable 。
|
Constructor and Description |
---|
SortingFocusTraversalPolicy(Comparator<? super Component> comparator)
构建一个与指定的比较器SortingFocusTraversalPolicy。
|
Modifier and Type | Method and Description |
---|---|
int |
TitledBorder.getBaseline(Component c, int width, int height)
返回基线。
|
int |
AbstractBorder.getBaseline(Component c, int width, int height)
返回基线。
|
Component.BaselineResizeBehavior |
TitledBorder.getBaselineResizeBehavior(Component c)
返回一个枚举指示如何边境的大小变化的基线。
|
Component.BaselineResizeBehavior |
AbstractBorder.getBaselineResizeBehavior(Component c)
返回一个枚举指示一个成分变化大小变化的基线。
|
Insets |
Border.getBorderInsets(Component c)
返回边境的插图。
|
Insets |
AbstractBorder.getBorderInsets(Component c)
此默认实现返回一个新的
Insets 对象是由
AbstractBorder.getBorderInsets(Component,Insets) 方法初始化。
|
Insets |
BevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
TitledBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
StrokeBorder.getBorderInsets(Component c, Insets insets)
重新初始化这个边境的插图
insets 参数。
|
Insets |
MatteBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
LineBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
AbstractBorder.getBorderInsets(Component c, Insets insets)
重新初始化插入参数与本边境目前的插图。
|
Insets |
SoftBevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
CompoundBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EmptyBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EtchedBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
protected Font |
TitledBorder.getFont(Component c) |
Color |
EtchedBorder.getHighlightColor(Component c)
当渲染到指定的组件时返回蚀刻边框的突出显示颜色。
|
Color |
BevelBorder.getHighlightInnerColor(Component c)
当渲染到指定的组件时,返回斜角边框的内部突出显示颜色。
|
Color |
BevelBorder.getHighlightOuterColor(Component c)
当渲染到指定的组件时,返回斜角边框的外部突出显示颜色。
|
static Rectangle |
AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
返回一个矩形使用参数减去边界的插图。
|
Rectangle |
AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height)
这种方便的方法调用静态方法。
|
Dimension |
TitledBorder.getMinimumSize(Component c)
返回此边框所需的最小尺寸,以充分显示边框和标题。
|
Color |
EtchedBorder.getShadowColor(Component c)
当渲染到指定组件时返回蚀刻边框的阴影颜色。
|
Color |
BevelBorder.getShadowInnerColor(Component c)
当渲染到指定的组件时,返回斜角边框的内部阴影颜色。
|
Color |
BevelBorder.getShadowOuterColor(Component c)
当渲染到指定的组件时返回斜角边框的外部阴影颜色。
|
void |
BevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
Border.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
TitledBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
StrokeBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
MatteBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
油漆雾边界。
|
void |
LineBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
AbstractBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
此默认实现不画。
|
void |
SoftBevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
void |
CompoundBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
涂料复合边界与指定的位置和大小,然后画在边境的指定的位置和大小由外边框的镶嵌画的外边界偏移。
|
void |
EmptyBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
默认情况下不绘制。
|
void |
EtchedBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
protected void |
BevelBorder.paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height) |
protected void |
BevelBorder.paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractColorChooserPanel
这是色彩选择的抽象类。
|
Constructor and Description |
---|
MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)
构建了一个menudragmouseevent对象。
|
MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)
构建了一个menudragmouseevent对象。
|
MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m)
构建了一个menukeyevent对象。
|
Modifier and Type | Class and Description |
---|---|
class |
LayerUI<V extends Component>
所有
JLayer UI的代表基类。
|
Modifier and Type | Method and Description |
---|---|
Insets |
BorderUIResource.getBorderInsets(Component c) |
void |
BorderUIResource.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
IconUIResource.paintIcon(Component c, Graphics g, int x, int y) |
Modifier and Type | Class and Description |
---|---|
class |
BasicArrowButton
JButton对象,得出规模的一个基本方向的箭头。
|
class |
BasicComboBoxRenderer
组合框渲染
|
static class |
BasicComboBoxRenderer.UIResource
basiccomboboxrenderer uiresource子类实现的。
|
class |
BasicComboPopup
这是一个基本的
ComboPopup 接口实现。
|
class |
BasicInternalFrameTitlePane
管理基本标题栏的类
|
class |
BasicInternalFrameTitlePane.SystemMenuBar
这个类应该被视为一个“受保护的”内部类。
|
class |
BasicSplitPaneDivider
用basicsplitpaneui分频器。
|
protected class |
BasicToolBarUI.DragWindow |
Modifier and Type | Field and Description |
---|---|
protected Component[] |
BasicSplitPaneUI.BasicHorizontalLayoutManager.components |
protected Component |
BasicTreeUI.MouseInputHandler.destination
接收所有事件的目的地。
|
protected Component |
BasicTreeUI.editingComponent
编辑时,这将是做实际编辑的组件。
|
protected Component |
BasicComboBoxUI.editor |
protected Component |
BasicSplitPaneDivider.hiddenDivider
分频器是用于不连续的布局模式。
|
protected Component |
BasicOptionPaneUI.initialFocusComponent
组件接收焦点时,与selectinitialvalue。
|
protected Component |
BasicSplitPaneUI.nonContinuousLayoutDivider
当正在使用非连续布局时,分隔符的阴影的实例。
|
protected Component |
BasicTreeUI.MouseInputHandler.source
事件的来源。
|
Component |
BasicMenuUI.ChangeHandler.wasFocused |
Modifier and Type | Method and Description |
---|---|
protected Component |
BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider()
返回默认的非连续布置的分频器,这是一个
Canvas 填充深灰色的背景。
|
protected Component |
BasicSpinnerUI.createNextButton()
创建一个增量按钮,即
|
protected Component |
BasicSpinnerUI.createPreviousButton()
创建一个递减按钮,即
|
Component |
BasicComboBoxEditor.getEditorComponent() |
protected Component |
BasicSliderUI.getHighestValueLabel()
返回对应于标签表中最低的滑块值的标签。
|
Component |
BasicComboBoxRenderer.getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
protected Component |
BasicSliderUI.getLowestValueLabel()
返回对应于标签表中最高的滑块值的标签。
|
Component |
BasicSplitPaneUI.getNonContinuousLayoutDivider()
返回器时使用splitpane配置为不连续的布局。
|
protected Component |
BasicTabbedPaneUI.getVisibleComponent() |
Modifier and Type | Method and Description |
---|---|
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(Component comp, Object constraints)
使用指定的约束对象将指定的组件添加到布局中。
|
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(String place, Component component)
添加组件在位置。
|
void |
BasicOptionPaneUI.ButtonAreaLayout.addLayoutComponent(String string, Component comp) |
void |
BasicInternalFrameTitlePane.TitlePaneLayout.addLayoutComponent(String name, Component c) |
void |
BasicInternalFrameUI.InternalFrameLayout.addLayoutComponent(String name, Component c) |
void |
BasicScrollBarUI.addLayoutComponent(String name, Component child) |
void |
BasicComboBoxUI.ComboBoxLayoutManager.addLayoutComponent(String name, Component comp) |
void |
BasicTabbedPaneUI.TabbedPaneLayout.addLayoutComponent(String name, Component comp) |
void |
BasicSplitPaneDivider.DividerLayout.addLayoutComponent(String string, Component c) |
boolean |
BasicToolBarUI.canDock(Component c, Point p) |
protected void |
BasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
Insets |
BasicBorders.SplitPaneBorder.getBorderInsets(Component c) |
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets) |
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Component c)
返回组件中传递的组件的宽度优先大小。
|
protected Dimension |
BasicComboBoxUI.getSizeForComponent(Component comp)
收益的大小的一部分会作为一个单元渲染器。
|
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getSizeOfComponent(Component c)
返回组件中传递的宽度。
|
protected void |
BasicSpinnerUI.installNextButtonListeners(Component c)
安装必要的听众在下一个按钮,
c ,更新响应用户的手势
JSpinner 。
|
protected void |
BasicSpinnerUI.installPreviousButtonListeners(Component c)
安装必要的听众前面的按钮,
c ,更新响应用户的手势
JSpinner 。
|
void |
BasicBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
BasicBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
BasicBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
BasicBorders.RadioButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
BasicBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
BasicBorders.FieldBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void |
BasicBorders.SplitPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
protected void |
BasicSliderUI.paintHorizontalLabel(Graphics g, int value, Component label)
在标签表中的每一个标签。
|
protected void |
BasicSliderUI.paintVerticalLabel(Graphics g, int value, Component label)
在标签表中的每一个标签。
|
void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.removeLayoutComponent(Component component)
从我们的知识中移除指定的组件。
|
void |
BasicOptionPaneUI.ButtonAreaLayout.removeLayoutComponent(Component c) |
void |
BasicInternalFrameTitlePane.TitlePaneLayout.removeLayoutComponent(Component c) |
void |
BasicInternalFrameUI.InternalFrameLayout.removeLayoutComponent(Component c) |
void |
BasicScrollBarUI.removeLayoutComponent(Component child) |
void |
BasicComboBoxUI.ComboBoxLayoutManager.removeLayoutComponent(Component comp) |
void |
BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent(Component comp) |
void |
BasicSplitPaneDivider.DividerLayout.removeLayoutComponent(Component c) |
protected void |
BasicToolBarUI.setBorderToNonRollover(Component c)
设置组件的边界有一个非侧翻的边界是由
BasicToolBarUI.createNonRolloverBorder() 方法创建。
|
protected void |
BasicToolBarUI.setBorderToNormal(Component c)
设置组件的边框以有一个正常的边框。
|
protected void |
BasicToolBarUI.setBorderToRollover(Component c)
设置组件的边界有一个翻转的边界是由
BasicToolBarUI.createRolloverBorder() 方法创建。
|
protected void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
将大小的组分C的宽度,将其定位在位置x,Y的insets.top和高度的containersize.height更少的顶部和底部的插图。
|
protected void |
BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider)
设置分频器使用时,splitpane配置为不连续的布局。
|
protected void |
BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
设置分隔符使用。
|
protected void |
BasicTabbedPaneUI.setVisibleComponent(Component component) |
Constructor and Description |
---|
MouseInputHandler(Component source, Component destination, MouseEvent event) |
Modifier and Type | Class and Description |
---|---|
class |
MetalComboBoxButton
JButton类来帮助metalcomboboxui
|
class |
MetalComboBoxUI.MetalComboPopup
过时的。
作为java 2平台V1.4。
|
protected class |
MetalFileChooserUI.FileRenderer |
class |
MetalFileChooserUI.FilterComboBoxRenderer
渲染不同类型的大小和样式。
|
class |
MetalInternalFrameTitlePane
班级管理该标题栏
|
class |
MetalScrollButton
金属滚动条箭头JButton对象。
|
Modifier and Type | Method and Description |
---|---|
Component |
MetalFileChooserUI.FilterComboBoxRenderer.getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetalCheckBoxIcon.drawCheck(Component c, Graphics g, int x, int y) |
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c, Insets insets) |
Insets |
MetalBorders.TableHeaderBorder.getBorderInsets(Component c, Insets insets) |
void |
MetalBorders.Flush3DBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.InternalFrameBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.PaletteBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.OptionDialogBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.MenuItemBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.PopupMenuBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.ToolBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.TextFieldBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.ScrollPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalBorders.TableHeaderBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void |
MetalIconFactory.PaletteCloseIcon.paintIcon(Component c, Graphics g, int x, int y) |
void |
MetalIconFactory.FolderIcon16.paintIcon(Component c, Graphics g, int x, int y) |
void |
MetalIconFactory.FileIcon16.paintIcon(Component c, Graphics g, int x, int y) |
void |
MetalIconFactory.TreeControlIcon.paintIcon(Component c, Graphics g, int x, int y) |
void |
MetalCheckBoxIcon.paintIcon(Component c, Graphics g, int x, int y) |
void |
MetalComboBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
油漆水平钢筋
|
void |
MetalIconFactory.TreeControlIcon.paintMe(Component c, Graphics g, int x, int y) |
void |
MetalLookAndFeel.provideErrorFeedback(Component component)
当用户尝试调用无效的操作,如为不可编辑
JTextField 有焦点的粘贴。
|
protected void |
MetalToolBarUI.setBorderToNonRollover(Component c) |
Modifier and Type | Method and Description |
---|---|
protected Component |
SynthSplitPaneUI.createDefaultNonContinuousLayoutDivider()
返回默认的非连续布置的分频器,这是一个
Canvas 填充深灰色的背景。
|
protected Component |
SynthSpinnerUI.createNextButton()
创建一个增量按钮,即
|
protected Component |
SynthSpinnerUI.createPreviousButton()
创建一个递减按钮,即
|
Modifier and Type | Method and Description |
---|---|
protected void |
SynthTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
protected void |
SynthToolBarUI.setBorderToNonRollover(Component c)
这不实现任何东西,因为这
JToolBar 班
rollover 财产不用于Synth外观。
|
protected void |
SynthToolBarUI.setBorderToNormal(Component c)
这不实现任何东西,因为这
JToolBar 班
rollover 财产不用于Synth外观。
|
protected void |
SynthToolBarUI.setBorderToRollover(Component c)
这不实现任何东西,因为这
JToolBar 班
rollover 财产不用于Synth外观。
|
static void |
SynthLookAndFeel.updateStyles(Component c)
更新与
c 风格,和所有的孩子。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTableCellRenderer
绘制标准类(显示)在
JTable 单个细胞。
|
static class |
DefaultTableCellRenderer.UIResource
DefaultTableCellRenderer
UIResource 子类实现的。
|
class |
JTableHeader
这是管理的
JTable 头对象。
|
Modifier and Type | Method and Description |
---|---|
Component |
TableCellEditor.getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
设置初始
value 编辑。
|
Component |
DefaultTableCellRenderer.getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
返回默认单元格渲染器。
|
Component |
TableCellRenderer.getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
返回用于绘制单元格的组件。
|
Modifier and Type | Class and Description |
---|---|
class |
JTextComponent
JTextComponent 是Swing文本组件的基类。
|
Modifier and Type | Method and Description |
---|---|
protected Component |
ComponentView.createComponent()
创建与此视图关联的组件。
|
Component |
ComponentView.getComponent()
获取与视图关联的组件。
|
static Component |
StyleConstants.getComponent(AttributeSet a)
从属性列表中获取组件设置。
|
Modifier and Type | Method and Description |
---|---|
protected void |
PlainView.damageLineRange(int line0, int line1, Shape a, Component host)
油漆线范围。
|
static void |
StyleConstants.setComponent(MutableAttributeSet a, Component c)
设置组件属性。
|
Modifier and Type | Method and Description |
---|---|
protected Component |
ObjectView.createComponent()
创建组件。
|
protected Component |
FormView.createComponent()
创建组件。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTreeCellEditor.DefaultTextField
TextField 时没有采用编辑提供。
|
class |
DefaultTreeCellEditor.EditorContainer
把
editingComponent 负责集装箱。
|
class |
DefaultTreeCellRenderer
显示一个在树中的条目。
|
Modifier and Type | Field and Description |
---|---|
protected Component |
DefaultTreeCellEditor.editingComponent
用于编辑组件,从
editingContainer 获得。
|
Modifier and Type | Method and Description |
---|---|
Component |
TreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
设置初始零价值编辑。
|
Component |
DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
配置编辑器。
|
Component |
TreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
集
value 当前树的单元格的值。
|
Component |
DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
配置基于通过组件的渲染。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.