Java: Swing: LookAndFeel: UI Action Maps and InputMaps
Those without are:
panel, separators, table header, tool tip, viewport, desktop icon (except Motif)
UI | ActionMap | InputMap | Additional | Remarks |
|---|---|---|---|---|
buttons | x | focused: Prefix+".focusInputMap" | ALT-mnemonic in window | |
menu (item) | x | window: new | MenuKeyListener (compares key characters) for mnemonics menu: "Menu.shortcutKeys" with mnemonic in window | keys handled by ancestor popup menu |
menu bar | x | window: "MenuBar.windowBindings" | Windows adds action | |
popup menu | x | window: "PopupMenu.selectedWindowInputMapBindings", "PopupMenu.selectedWindowInputMapBindings.RightToLeft" | ||
root pane | x | window: "RootPane.defaultButtonWindowKeyBindings" | Windows adds KeyStroke (ALT) | Windows adds action |
desktop pane | x | window: "Desktop.windowBindings" (never set) ancestor: "Desktop.ancestorInputMap" | ||
internal frame | x | window: "InternalFrame.windowBindings" | ||
internal frame icon | Motif | window: "DesktopIcon.windowBindings" (Motif) | ||
label | x | window (new), focused (new) | ALT-mnenomic (both) | |
combo box | x | ancestor: "ComboBox.ancestorInputMap" | type ahead (KeyListener) | |
spinner | x | ancestor: "Spinner.ancestorInputMap" | ||
slider | x | focused: "Slider.focusInputMap", "Slider.focusInputMap.RightToLeft" | ||
scroll bar | x | focused: "ScrollBar.focusInputMap", "ScrollBar.focusInputMap.RightToLeft" | ||
scroll pane | x | ancestor: "ScrollPane.ancestorInputMap", "ScrollPane.ancestorInputMap.RightToLeft" | ||
split pane | x | ancestor: "SplitPane.ancestorInputMap" | TAB focus traversal keys | |
tabbed pane | x | ancestor: "TabbedPane.focusInputMap" focused: "TabbedPane.ancestorInputMap" | ALT-mnemonic (ancestor) | |
tool bar | x | ancestor: "ToolBar.ancestorInputMap" | ||
list | x | focused: "List.focusInputMap", "List.focusInputMap.RightToLeft" | type ahead (KeyListener) | |
table | x | ancestor: "Table.ancestorInputMap", "Table.ancestorInputMap.RightToLeft" | ||
tree | x | focused: "Tree.focusInputMap", "Tree.focusInputMap.RightToLeft" ancestor: "Tree.ancestorInputMap" | type ahead (KeyListener) | |
text | x | window (new) focused: Prefix+".focusInputMap" | ALT-accelerator in window hardcoded TAB focus traversal keys (depending on editable) | action map different for editor pane (built from EditorKit actions) |
option pane | x | window: "OptionPane.windowBindings" | ||
file chooser | x Metal uses new, Windows uses new | ancestor: "FileChooser.ancestorInputMap" |
(C) 2001-2009 Christian Kaufhold (swing@chka.de)