主要コンポーネントの定義済みアクション一覧

独自に定義したアクションのキーストロークがSwingコンポーネントに吸われてしまってハマることが多いので、自分のためにリストアップ。カーソル移動系の自明なアクションは省略してあります。

JTableのF8とか、JSplitPaneのF6/F8辺りは盲点だと思います。

JRootPane

KeyStroke Action When
Shift F10 postPopup WHEN_ANCESTOR_OF_FOCUSED_COMPONENT

JTextArea

KeyStroke Action When
Alt DELETE delete-next-word WHEN_FOCUSED
Ctrl A caret-begin-line WHEN_FOCUSED
Ctrl B caret-backward WHEN_FOCUSED
Ctrl D delete-next WHEN_FOCUSED
Ctrl E caret-end-line WHEN_FOCUSED
Ctrl F caret-forward WHEN_FOCUSED
Ctrl H delete-previous WHEN_FOCUSED
Ctrl N caret-down WHEN_FOCUSED
Ctrl P caret-up WHEN_FOCUSED
Ctrl V page-down WHEN_FOCUSED
DELETE delete-next WHEN_FOCUSED
ENTER insert-break WHEN_FOCUSED
Meta A select-all WHEN_FOCUSED
Meta BACK_SLASH unselect WHEN_FOCUSED
Meta C copy-to-clipboard WHEN_FOCUSED
Meta SPACE activate-link-action WHEN_FOCUSED
Meta T next-link-action WHEN_FOCUSED
Meta V paste-from-clipboard WHEN_FOCUSED
Meta X cut-to-clipboard WHEN_FOCUSED
Shift Ctrl O toggle-componentOrientation WHEN_FOCUSED
Shift Meta T previous-link-action WHEN_FOCUSED
TAB insert-tab WHEN_FOCUSED

JList

KeyStroke Action When
Meta A selectAll WHEN_FOCUSED
Meta C copy WHEN_FOCUSED
Meta V paste WHEN_FOCUSED
Meta X cut WHEN_FOCUSED

JTable

KeyStroke Action When
ENTER selectNextRowCell WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
ESCAPE cancel WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
F8 focusHeader WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Meta A selectAll WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Meta C copy WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Meta V paste WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Meta X cut WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Shift ENTER selectPreviousRowCell WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Shift TAB selectPreviousColumnCell WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
TAB selectNextColumnCell WHEN_ANCESTOR_OF_FOCUSED_COMPONENT

JTree

KeyStroke Action When
ESCAPE cancel WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Meta A selectAll WHEN_FOCUSED
Meta C copy WHEN_FOCUSED
Meta V paste WHEN_FOCUSED
Meta X cut WHEN_FOCUSED

JSplitPane

KeyStroke Action When
Ctrl TAB focusOutForward WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
F6 toggleFocus WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
F8 startResize WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Shift Ctrl TAB focusOutBackward WHEN_ANCESTOR_OF_FOCUSED_COMPONENT