| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel (once codenamed
Metal), which is the default look and feel.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAction
This class provides default implementations for the JFC
Action interface.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
ActionMap.get(Object
Returns the binding for
key, messaging the parent
ActionMap if the binding is not locally defined.
|
Action |
JComboBox.getAction()
Returns the currently set
Action for this
ActionEvent source, or
null if no
Action is set.
|
Action |
JTextField.getAction()
Returns the currently set
Action for this
ActionEvent source, or
null if no
Action is set.
|
Action |
AbstractButton.getAction()
Returns the currently set
Action for this
ActionEvent source, or
null if no
Action is set.
|
Action |
JFormattedTextField.getActions()
Fetches the command list for the editor.
|
protected Action |
JFormattedTextField.AbstractFormatter.getActions()
Subclass and override if you wish to provide a custom set of
Actions.
|
Action |
JTextField.getActions()
Fetches the command list for the editor.
|
static Action |
TransferHandler.getCopyAction()
Returns an
Action that performs copy operations to the clipboard.
|
static Action |
TransferHandler.getCutAction()
Returns an
Action that performs cut operations to the clipboard.
|
static Action |
TransferHandler.getPasteAction()
Returns an
Action that performs paste operations from the clipboard.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
JComboBox.actionPropertyChanged(Action
Updates the combobox's state in response to property changes in associated action.
|
protected void |
JTextField.actionPropertyChanged(Action
Updates the textfield's state in response to property changes in associated action.
|
protected void |
JMenuItem.actionPropertyChanged(Action
Updates the button's state in response to property changes in the associated action.
|
protected void |
AbstractButton.actionPropertyChanged(Action
Updates the button's state in response to property changes in the associated action.
|
JMenuItem |
JPopupMenu.add(Action
Appends a new menu item to the end of the menu which dispatches the specified
Action object.
|
JMenuItem |
JMenu.add(Action
Creates a new menu item attached to the specified
Action object and appends it to the end of this menu.
|
JButton |
JToolBar.add(Action
Adds a new
JButton which dispatches the action.
|
protected void |
JComboBox.configurePropertiesFromAction(Action
Sets the properties on this combobox to match those in the specified
Action.
|
protected void |
JTextField.configurePropertiesFromAction(Action
Sets the properties on this textfield to match those in the specified
Action.
|
protected void |
JMenuItem.configurePropertiesFromAction(Action
Sets the properties on this button to match those in the specified
Action.
|
protected void |
AbstractButton.configurePropertiesFromAction(Action
Sets the properties on this button to match those in the specified
Action.
|
protected JMenuItem |
JPopupMenu.createActionComponent(Action
Factory method which creates the
JMenuItem for
Actions added to the
JPopupMenu.
|
protected JMenuItem |
JMenu.createActionComponent(Action
Factory method which creates the
JMenuItem for
Actions added to the
JMenu.
|
protected JButton |
JToolBar.createActionComponent(Action
Factory method which creates the
JButton for
Actions added to the
JToolBar.
|
protected PropertyChangeListener |
JComboBox.createActionPropertyChangeListener(Action
Creates and returns a
PropertyChangeListener that is responsible for listening for changes from the specified
Action and updating the appropriate properties.
|
protected PropertyChangeListener |
JTextField.createActionPropertyChangeListener(Action
Creates and returns a
PropertyChangeListener that is responsible for listening for changes from the specified
Action and updating the appropriate properties.
|
protected PropertyChangeListener |
AbstractButton.createActionPropertyChangeListener(Action
Creates and returns a
PropertyChangeListener that is responsible for listening for changes from the specified
Action and updating the appropriate properties.
|
void |
JPopupMenu.insert(Action
Inserts a menu item for the specified
Action object at a given position.
|
JMenuItem |
JMenu.insert(Action
Inserts a new menu item attached to the specified
Action object at a given position.
|
static boolean |
SwingUtilities.notifyAction(Action
Invokes
actionPerformed on
action if
action is enabled (and non-
null).
|
void |
ActionMap.put(Object
Adds a binding for
key to
action.
|
void |
JComboBox.setAction(Action
Sets the
Action for the
ActionEvent source.
|
void |
JTextField.setAction(Action
Sets the
Action for the
ActionEvent source.
|
void |
AbstractButton.setAction(Action
Sets the
Action.
|
| Constructor and Description | |
|---|---|
JButton(Action
Creates a button where properties are taken from the
Action supplied.
|
|
JCheckBox(Action
Creates a check box where properties are taken from the Action supplied.
|
|
JCheckBoxMenuItem(Action
Creates a menu item whose properties are taken from the Action supplied.
|
|
JMenu(Action
Constructs a menu whose properties are taken from the
Action supplied.
|
|
JMenuItem(Action
Creates a menu item whose properties are taken from the specified
Action.
|
|
JRadioButton(Action
Creates a radiobutton where properties are taken from the Action supplied.
|
|
JRadioButtonMenuItem(Action
Creates a radio button menu item whose properties are taken from the
Action supplied.
|
|
JToggleButton(Action
Creates a toggle button where properties are taken from the Action supplied.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicDesktopPaneUI
Handles closing an internal frame.
|
protected class |
BasicDesktopPaneUI
Handles maximizing an internal frame.
|
protected class |
BasicDesktopPaneUI
Handles minimizing an internal frame.
|
protected class |
BasicDesktopPaneUI
Handles navigating to the next internal frame.
|
protected class |
BasicDesktopPaneUI
Handles restoring a minimized or maximized internal frame.
|
protected class |
BasicFileChooserUI
Responds to an Open or Save request
|
protected class |
BasicFileChooserUI
Responds to a cancel request.
|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
Acts on the "home" key event or equivalent event.
|
protected class |
BasicFileChooserUI
Creates a new folder.
|
protected class |
BasicFileChooserUI
Rescans the files in the current directory
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicInternalFrameTitlePane
This class should be treated as a "protected" inner class.
|
class |
BasicSliderUI
As of Java 2 platform v1.3 this undocumented class is no longer used.
|
class |
BasicTreeUI
ActionListener that invokes cancelEditing when action performed.
|
class |
BasicTreeUI
TreeHomeAction is used to handle end/home actions.
|
class |
BasicTreeUI
TreeIncrementAction is used to handle up/down actions.
|
class |
BasicTreeUI
TreePageAction handles page up and page down events.
|
class |
BasicTreeUI
For the first selected row expandedness will be toggled.
|
class |
BasicTreeUI
TreeTraverseAction is the action used for left/right keys.
|
| Modifier and Type | Field and Description |
|---|---|
protected Action |
BasicInternalFrameTitlePane.closeAction
|
protected Action |
BasicInternalFrameTitlePane.iconifyAction
|
protected Action |
BasicInternalFrameTitlePane.maximizeAction
|
protected Action |
BasicInternalFrameTitlePane.moveAction
|
protected Action |
BasicTreeUI.KeyHandler.repeatKeyAction
Key code that is being generated for.
|
protected Action |
BasicInternalFrameTitlePane.restoreAction
|
protected Action |
BasicInternalFrameTitlePane.sizeAction
|
| Modifier and Type | Method and Description |
|---|---|
protected Action |
BasicLookAndFeel.createAudioAction(Object
Creates and returns an
Action used to play a sound.
|
Action |
BasicFileChooserUI.getApproveSelectionAction()
|
Action |
BasicFileChooserUI.getCancelSelectionAction()
|
Action |
BasicFileChooserUI.getChangeToParentDirectoryAction()
|
Action |
BasicFileChooserUI.getGoHomeAction()
|
Action |
BasicFileChooserUI.getNewFolderAction()
|
Action |
BasicFileChooserUI.getUpdateAction()
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BasicLookAndFeel.playSound(Action
If necessary, invokes
actionPerformed on
audioAction to play a sound.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetalFileChooserUI
Acts when DirectoryComboBox has changed the selected item.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultEditorKit
Creates a beep.
|
static class |
DefaultEditorKit
Copies the selected region and place its contents into the system clipboard.
|
static class |
DefaultEditorKit
Cuts the selected region and place its contents into the system clipboard.
|
static class |
DefaultEditorKit
The action that is executed by default if a
key typed event is received and there is no keymap entry.
|
static class |
DefaultEditorKit
Places a line/paragraph break into the document.
|
static class |
DefaultEditorKit
Places content into the associated document.
|
static class |
DefaultEditorKit
Places a tab character into the document.
|
static class |
DefaultEditorKit
Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.
|
static class |
StyledEditorKit
An action to set paragraph alignment.
|
static class |
StyledEditorKit
An action to toggle the bold attribute.
|
static class |
StyledEditorKit
An action to set the font family in the associated JEditorPane.
|
static class |
StyledEditorKit
An action to set the font size in the associated JEditorPane.
|
static class |
StyledEditorKit
An action to set foreground color.
|
static class |
StyledEditorKit
An action to toggle the italic attribute.
|
static class |
StyledEditorKit
An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.
|
static class |
StyledEditorKit
An action to toggle the underline attribute.
|
class |
TextAction
An Action implementation useful for key bindings that are shared across a number of different text components.
|
| Modifier and Type | Method and Description |
|---|---|
static Action |
TextAction.augmentList(Action
Takes one list of commands and augments it with another list of commands.
|
Action |
Keymap.getAction(KeyStroke
Fetches the action appropriate for the given symbolic event sequence.
|
protected Action |
InternationalFormatter.getActions()
If
getSupportsIncrement returns true, this returns two Actions suitable for incrementing/decrementing the value.
|
Action |
JTextComponent.getActions()
Fetches the command list for the editor.
|
abstract Action |
EditorKit.getActions()
Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.
|
Action |
DefaultEditorKit.getActions()
Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.
|
Action |
StyledEditorKit.getActions()
Fetches the command list for the editor.
|
Action |
Keymap.getBoundActions()
Fetches all of the actions defined in this keymap.
|
Action |
Keymap.getDefaultAction()
Fetches the default action to fire if a key is typed (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Keymap.addActionForKeyStroke(KeyStroke
Adds a binding to the keymap.
|
static Action |
TextAction.augmentList(Action
Takes one list of commands and augments it with another list of commands.
|
static Action |
TextAction.augmentList(Action
Takes one list of commands and augments it with another list of commands.
|
KeyStroke |
Keymap.getKeyStrokesForAction(Action
Fetches the keystrokes that will result in the given action.
|
static void |
JTextComponent.loadKeymap(Keymap
Loads a keymap with a bunch of bindings.
|
void |
Keymap.setDefaultAction(Action
Set the default action to fire if a key is typed.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
HTMLEditorKit
An abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.
|
static class |
HTMLEditorKit
InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
HTMLEditorKit.getActions()
Fetches the command list for the editor.
|