软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Class and Description |
---|---|
class |
AWTEventMulticaster
AWTEventMulticaster 实现高效的线程安全多播事件在
java.awt.event 包中定义的AWT事件调度。
|
protected class |
List.AccessibleAWTList
这个类实现了对
List 类可访问性支持。
|
Modifier and Type | Method and Description |
---|---|
static ActionListener |
AWTEventMulticaster.add(ActionListener a, ActionListener b)
增加了action-listener-a与action-listener-b并返回产生的组播侦听者。
|
ActionListener[] |
MenuItem.getActionListeners()
返回在这个菜单项上注册的所有操作侦听器的数组。
|
ActionListener[] |
List.getActionListeners()
返回在这个列表上注册的所有操作侦听器的数组。
|
ActionListener[] |
Button.getActionListeners()
返回在这个按钮上注册的所有操作侦听器的数组。
|
ActionListener[] |
TrayIcon.getActionListeners()
返回的所有行动的听众对这
TrayIcon 注册一个数组。
|
ActionListener[] |
TextField.getActionListeners()
返回所有的动作监听器注册这个TextField的数组。
|
static ActionListener |
AWTEventMulticaster.remove(ActionListener l, ActionListener oldl)
从action-listener-l除去旧的监听行动并返回产生的组播侦听者。
|
Modifier and Type | Method and Description |
---|---|
static ActionListener |
AWTEventMulticaster.add(ActionListener a, ActionListener b)
增加了action-listener-a与action-listener-b并返回产生的组播侦听者。
|
void |
MenuItem.addActionListener(ActionListener l)
添加指定的操作侦听器从该菜单项接收操作事件。
|
void |
List.addActionListener(ActionListener l)
添加指定的操作侦听器从该列表中接收动作事件。
|
void |
Button.addActionListener(ActionListener l)
添加指定的操作侦听器从该按钮接收动作事件。
|
void |
TrayIcon.addActionListener(ActionListener listener)
添加指定的监听行动从这
TrayIcon 收到
ActionEvent s。
|
void |
TextField.addActionListener(ActionListener l)
添加指定的操作侦听器从该文本字段接收动作事件。
|
static ActionListener |
AWTEventMulticaster.remove(ActionListener l, ActionListener oldl)
从action-listener-l除去旧的监听行动并返回产生的组播侦听者。
|
void |
MenuItem.removeActionListener(ActionListener l)
移除指定的动作侦听器,所以它不再从该菜单项接收动作事件。
|
void |
List.removeActionListener(ActionListener l)
移除指定的动作侦听器,以便它不再从该列表中接收动作事件。
|
void |
Button.removeActionListener(ActionListener l)
移除指定的动作侦听器,以便它不再从该按钮接收动作事件。
|
void |
TrayIcon.removeActionListener(ActionListener listener)
移除指定的动作侦听器。
|
void |
TextField.removeActionListener(ActionListener l)
移除指定的动作侦听器,以便它不再接收来自该文本字段的动作事件。
|
Modifier and Type | Class and Description |
---|---|
protected static class |
DropTarget.DropTargetAutoScroller
这个保护嵌套类实现自动滚动
|
Modifier and Type | Interface and Description |
---|---|
interface |
Action
的
Action 接口提供了一个有用的扩展,
ActionListener 接口的情况下,相同的功能可以由几个控件访问。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAction
这个类提供了JFC
Action 接口的默认实现。
|
protected class |
DefaultCellEditor.EditorDelegate
保护
EditorDelegate 类。
|
class |
JComboBox<E>
的一个组成部分,结合一个按钮或可编辑的字段和一个下拉列表。
|
protected class |
ToolTipManager.insideTimerAction |
protected class |
ToolTipManager.outsideTimerAction |
protected class |
ToolTipManager.stillInsideTimerAction |
Modifier and Type | Field and Description |
---|---|
protected ActionListener |
AbstractButton.actionListener
按钮的
ActionListener 模型。
|
Modifier and Type | Method and Description |
---|---|
protected ActionListener |
AbstractButton.createActionListener() |
ActionListener |
JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
返回将执行动作注册为一个给定的键的对象。
|
ActionListener[] |
Timer.getActionListeners()
返回在这个计时器上注册的所有操作侦听器的数组。
|
ActionListener[] |
DefaultButtonModel.getActionListeners()
返回的所有行动的听众对这
DefaultButtonModel 注册一个数组。
|
ActionListener[] |
JFileChooser.getActionListeners()
返回所有的监听行动在这个文件选择器注册一个数组。
|
ActionListener[] |
JComboBox.getActionListeners()
返回所有的
ActionListener s数组添加到这个JComboBox和addactionlistener()。
|
ActionListener[] |
AbstractButton.getActionListeners()
返回所有的
ActionListener s数组添加到这个abstractbutton与addactionlistener()。
|
ActionListener[] |
JTextField.getActionListeners()
返回所有的
ActionListener s数组添加到这个文本输入框和addactionlistener()。
|
Modifier and Type | Method and Description |
---|---|
void |
ComboBoxEditor.addActionListener(ActionListener l)
添加一个ActionListener。
|
void |
Timer.addActionListener(ActionListener listener)
添加一个监听行动的
Timer 。
|
void |
DefaultButtonModel.addActionListener(ActionListener l)
增加了一个
ActionListener 的模型。
|
void |
JFileChooser.addActionListener(ActionListener l)
增加了一个
ActionListener 的文件选择器。
|
void |
JComboBox.addActionListener(ActionListener l)
增加了一个
ActionListener 。
|
void |
AbstractButton.addActionListener(ActionListener l)
增加了一个
ActionListener 的按钮。
|
void |
JTextField.addActionListener(ActionListener l)
添加指定的监听行动从文本接受的动作事件。
|
void |
ButtonModel.addActionListener(ActionListener l)
增加了一个
ActionListener 的模型。
|
static JDialog |
JColorChooser.createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)
创建并返回一个新的对话框包含指定
ColorChooser 窗格随着“确定”、“取消”和“重置”按钮。
|
void |
JComponent.registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
这种方法已经过时了,对于类似的行为,请使用组合
getActionMap() 和
getInputMap() 。
|
void |
JComponent.registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)
这种方法已经过时了,对于类似的行为,请使用组合
getActionMap() 和
getInputMap() 。
|
void |
ComboBoxEditor.removeActionListener(ActionListener l)
删除一个ActionListener
|
void |
Timer.removeActionListener(ActionListener listener)
从
Timer 移除指定的监听行动。
|
void |
DefaultButtonModel.removeActionListener(ActionListener l)
删除从模型的一个
ActionListener 。
|
void |
JFileChooser.removeActionListener(ActionListener l)
删除从文件选择一个
ActionListener 。
|
void |
JComboBox.removeActionListener(ActionListener l)
删除一个
ActionListener 。
|
void |
AbstractButton.removeActionListener(ActionListener l)
删除按钮
ActionListener 。
|
void |
JTextField.removeActionListener(ActionListener l)
移除指定的监听行动使它不再接收动作事件从这个文本框。
|
void |
ButtonModel.removeActionListener(ActionListener l)
删除从模型的一个
ActionListener 。
|
Constructor and Description |
---|
Timer(int delay, ActionListener listener)
创建一个
Timer 和初始化的初始延迟和事件之间
delay 毫秒延迟。
|
Modifier and Type | Field and Description |
---|---|
protected ActionListener |
BasicSplitPaneUI.keyboardDownRightListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.keyboardEndListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.keyboardHomeListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.keyboardResizeToggleListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.keyboardUpLeftListener
过时的。
作为java 2平台V1.3。
|
Modifier and Type | Method and Description |
---|---|
protected ActionListener |
BasicOptionPaneUI.createButtonActionListener(int buttonIndex) |
protected ActionListener |
BasicSplitPaneUI.createKeyboardDownRightListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.createKeyboardEndListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.createKeyboardHomeListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.createKeyboardResizeToggleListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
BasicSplitPaneUI.createKeyboardUpLeftListener()
过时的。
作为java 2平台V1.3。
|
Modifier and Type | Method and Description |
---|---|
void |
BasicComboBoxEditor.addActionListener(ActionListener l) |
void |
BasicComboBoxEditor.removeActionListener(ActionListener l) |
Modifier and Type | Class and Description |
---|---|
protected class |
MetalFileChooserUI.DirectoryComboBoxAction
当DirectoryComboBox改变了行为选择的项目。
|
Modifier and Type | Class and Description |
---|---|
static class |
DefaultEditorKit.BeepAction
创建一个蜂。
|
static class |
DefaultEditorKit.CopyAction
复制选定区域并将其内容放置到系统剪贴板中。
|
static class |
DefaultEditorKit.CutAction
剪切选定区域并将其内容放置到系统剪贴板中。
|
static class |
DefaultEditorKit.DefaultKeyTypedAction
这是默认情况下,如果执行关键类型的事件被接收,并没有你所进入的动作。
|
static class |
DefaultEditorKit.InsertBreakAction
将行/段落分解到文档中。
|
static class |
DefaultEditorKit.InsertContentAction
将内容放置到相关的文档中。
|
static class |
DefaultEditorKit.InsertTabAction
将标签字符放置到文档中。
|
static class |
DefaultEditorKit.PasteAction
浆料系统的剪贴板的内容到选定的区域,或在插入符号如果没有选择。
|
static class |
StyledEditorKit.AlignmentAction
设置段落对齐的动作。
|
static class |
StyledEditorKit.BoldAction
切换大胆属性的动作。
|
static class |
StyledEditorKit.FontFamilyAction
一个动作在相关jeditorpane设置字体。
|
static class |
StyledEditorKit.FontSizeAction
一个动作在相关jeditorpane设置字体大小。
|
static class |
StyledEditorKit.ForegroundAction
设置前景色的动作。
|
static class |
StyledEditorKit.ItalicAction
切换斜体属性的作用。
|
static class |
StyledEditorKit.StyledTextAction
一个动作,假设它是一个stylededitorkit jeditorpane解雇(或子类)安装。
|
static class |
StyledEditorKit.UnderlineAction
切换下划线属性的一个动作。
|
class |
TextAction
用于在多个不同的文本组件共享的键绑定中使用的操作实现。
|
Modifier and Type | Class and Description |
---|---|
class |
FormView
组件设计师实现表单元素的视图界面,
<输入>
、
<文本>
,
<选择>
。
选择>
文本>
输入>
|
static class |
HTMLEditorKit.HTMLTextAction
一个抽象的行动提供一些方便的方法,可以插入HTML到现有的文件是有用的。
|
static class |
HTMLEditorKit.InsertHTMLTextAction
inserthtmltextaction可以插入HTML任意字符串到一个现有的HTML文档。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTreeCellEditor
一个
TreeCellEditor 。
|
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.