This page gives the Windows-style keystroke-actions for:
Note:
Where the implementation occurs in other than the obvious Look and Feel (L&F) class, the implementing class
is shown in parentheses. For example: (DefaultFocusManager). Currently implemented keystrokes that are not to spec
are shown in ALL CAPS.
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JComboBox (Win32 L&F) |
Navigate out forward | Tab | yes (DefaultFocusManager) |
| Navigate out backward | Shift+Tab | yes (DefaultFocusManager) | |
| Post menu | Alt+Down | yes (JComboBox) | |
| Retract menu | Esc Alt+Up |
yes (JComboBox) | |
| Toggle menu up or down | Alt+Up Alt+Down |
yes (JComboBox) | |
| Select entry with matching initial character (if not editable) | any char | yes | |
| Move up or down | Up, Down | yes | |
| Other navigation keys?? | See JList | ||
| Edit field | See JTextField | ||
| Activate selection | Enter | yes (JComboBox) | |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JTable (Win32 L&F) |
Navigate out forward | Ctrl+Tab | |
| Navigate out backward | Ctrl+Shift+Tab | ||
| Move to next cell (wrap to next row) |
Tab | ||
| Right | yes | ||
| Move to previous cell (wrap to previous row) |
Shift+Tab | ||
| Left | yes | ||
| Move to cell above | Shift+Enter | ||
| Up | yes | ||
| Move to cell below | Enter | ||
| Down | yes | ||
| Block move vertical | PgUp, PgDn | ||
| Block move left | Ctrl+PgUp | ||
| Block move right | Ctrl+PgDn | ||
| Move to first cell in row | Home | ||
| Move to last cell in row | End | ||
| Move to first cell in table | Ctrl+Home | ||
| Move to last cell in table | Ctrl+End | ||
| Select all cells | Ctrl+A | ||
| Select a non-contiguous row | -none- | ||
| Range-select | -none- | ||
| Extend selection one row | Shift+Up, Shift+Down | ||
| Extend selection one column | Shift+Left, Shift+Right | ||
| Extend selection to first/last column | Shift+Home, Shift+End | ||
| Extend selection to first/last row | -none- | ||
| Extend selection to first/last cell | Ctrl+Shift+Home, Ctrl+Shift+End | ||
| Block extend vertical | Shift+PgUp, Shift+PgDn | ||
| Block extend left | Ctrl+Shift+PgUp | ||
| Block extend right | Ctrl+Shift+PgDn | ||
| Begin editing cell | ??? | ||
| Edit cell | See JTextField |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JTree (Win32 L&F) |
Navigate out forward | Tab | yes (DefaultFocusManager) |
| Navigate out backward | Shift+Tab | yes (DefaultFocusManager) | |
| Expand entry | Right | yes (JTree) | |
| Collapse entry | Left | yes (JTree) | |
| Toggle expand/collapse for entry | Enter | yes (JTree) | |
| Expand all entries | -none- | n/a | |
| Collapse all entries | -none- | n/a | |
| Move up/down one entry | Up, Down | yes (JTree) | |
| Move to first entry | Home | yes (JTree) | |
| Move to last visible entry | End | yes (JTree) | |
| Block move vertical | PgUp, PgDn | yes (JTree) | |
| Block move left | Ctrl+PgUp | ||
| Block move right | Ctrl+PgDn | ||
| Select all | Ctrl+A | ||
| Single select | Ctrl+Spacebar | ||
| Range-select | Shift+Spacebar | ||
| Extend selection up | Shift+Up | ||
| Extend selection down | Shift+Down | ||
| Extend selection to start of data | Shift+Home | ||
| Extend selection to end of data | Shift+End | ||
| Block extend vertical | Shift+PgUp, Shift+PgDn | ||
| Edit cell | See JTextField |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JMenu (Win32 L&F) |
Move to next item (wrap to top) |
Down | yes |
| Move to previous item (wrap to bottom) |
Up | yes | |
| Retract menu | Esc | yes |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JCheckBoxMenuItem (Win32 L&F) |
Check/Uncheck item and retract menu | See JMenuItem, "Activate item" | |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JRadioButtonMenuItem (Win32 L&F) |
Check/Uncheck item and retract menu | See JMenuItem, "Activate item" | |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JToolTip (Win32 L&F) |
Post tip | Ctrl+F1 | |
| Retract tip | Esc, Ctrl+F1 |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JPasswordField (Win32 L&F) |
Navigate, move within the field, and select | See JTextField | |
| ??Selection allowed?? | |||
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JTextPane (Win32 L&F) |
Navigate, move, select | See JTextArea | |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JEditorPane (Win32 L&F) |
Navigate, move, select | See JTextArea | |
| Move to next/prev HTML link or other focusable element |
Tab, Shift+Tab | ||
| Move out of focusable elements that accept a tab | Ctrl+Tab, Ctrl+Shift+Tab | ||
| Activate an HTML link | Enter | ||
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JOptionPane (Win32 L&F) |
Navigate out | Alt+F6 | |
| Retract dialog | Esc | ||
| Activate the default button (if defined) | Enter | yes (JRootPane) |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JDialog (Win32 L&F) |
Navigate out | Alt+F6 | |
| Retract dialog | Esc | ||
| Activate the default button (if defined) | Enter | yes (JRootPane) |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JFrame (Win32 L&F) |
Navigate out | Alt+Esc | |
| Display window menu | Alt+Spacebar | ||
| Activate the default button (if defined) | Enter | yes (JRootPane) |
| Component | Action | Intended Key | Implemented |
|---|---|---|---|
| JWindow (Win32 L&F) |
Activate the default button (if defined) | Enter | yes (JRootPane) |