JTree
Table B-42. Bound JTree actions (when focused)
ActionMap entry | Metal L&F | Mac L&F |
---|---|---|
clearSelection | Ctrl \-P | Command \-P |
copy | Copy-PCtrl C-P | Not bound |
cut | Ctrl X-PCut-P | Not bound |
extendSelection | Shift Space-P | Shift Space-P |
paste | Ctrl V-PPaste-P | Not bound |
scrollDownChangeLead | Ctrl Page Down-P | Command Page Down-P |
scrollDownChangeSelection | Page Down-P | Page Down-P |
scrollDownExtendSelection | Shift Page Down-PCtrl+Shift Page Down-P | Shift Page Down-PCommand+Shift Page Down-P |
scrollLeft | Ctrl Left-P | Command Left-P |
scrollRight | Ctrl Right-P | Command Right-P |
scrollUpChangeLead | Ctrl Page Up-P | Command Page Up-P |
scrollUpChangeSelection | Page Up-P | Page Up-P |
scrollUpExtendSelection | Ctrl+Shift Page Up-PShift Page Up-P | Command+Shift Page Up-PShift Page Up-P |
selectAll | Ctrl /-PCtrl A-P | Command A-P |
selectChild | Right-P | Right-P |
selectFirst | Home-P | Home-P |
selectFirstChangeLead | Ctrl Home-P | Command Home-P |
selectFirstExtendSelection | Shift Home-P | Shift Home-P |
selectLast | End-P | End-P |
selectLastChangeLead | Ctrl End-P | Command End-P |
selectLastExtendSelection | Shift End-P | Shift End-P |
selectNext | Down-P | Down-P |
selectNextChangeLead | Ctrl Down-P | Command Down-P |
selectNextExtendSelection | Shift Down-P | Shift Down-P |
selectParent | Left-P | Left-P |
selectPrevious | Up-P | Up-P |
selectPreviousChangeLead | Ctrl Up-P | Command Up-P |
selectPreviousExtendSelection | Shift Up-P | Shift Up-P |
startEditing | F2-P | F2-P |
toggle | Not bound | Enter-P |
toggleSelectionPreserveAnchor | Ctrl Space-PSpace-P | Command Space-PSpace-P |
Table B-43. Bound JTree actions (when ancestor of focused component)
ActionMap entry | Metal L&F | Mac L&F |
---|---|---|
cancel | Escape-P | Escape-P |
Table B-44. Unbound ...
Get Java Swing, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.