The Source for Java Technology Collaboration


Home | Changes | Index | Search | Go

SwingXKeyBindings

Community page to suggest, collect, complete key bindings for SwingX components.

Goal

All well-behaved GUI must be usable by both mouse and keyboard gestures. Swing comes with a high-level support for the latter by key bindings (TODO: add link to tutorial) and the core components make ample use of it. So in principle it is easy to register new key strokes for new functionality in SwingX. The problem is, to find appropriate keys: sources might be equivalent functionality in real-world applications, OS-specific UI-guidelines, usability studies ... a task for many open eyes, that is you as part of the SwingX community. In the end, we want to have a list of bindings for each SwingX component, covering every functional aspect in all OSs.

Mechanics

Not much formality: my vision is to have one section per component (preferably alphabetically ordered) and maybe a table per component listing all the functions that need to be bound in one column and key proposal with links to examples in the other. Everybody reading this is invited to contribute. If you disagree with what's already there, add your comment, counter-proposal. If there's need for discussion, we'll do it in the forum. Happy hunting!

Question do we need separate bindings for components used in a TableCellEditor context?

Reference

A good starting point for finding suitable key bindings would be to look into the various platform Human interface guidelines. Direct links for useful keyboard navigation references include:

Suggestions

JXDatePicker

Functions Key Strokes Context
Toggle Display of JXMonthView Currently bound to <Space> See JXDatePicker : change spacebar key action Suggest <Alt>+<Cursor Down> may be more approiate for Windows (same as combo box show items). Related SwingX Issue 596. when ancestor of focused

JXTable

Functions Key Strokes Context
Search/Find defined by SearchFactory getFindAccelerator, OS specific ctrl-f or cmd-f (for mac) when ancestor of focused
Open ColumnControl    
Move Column    
Resize Column    
Sort Column    
Hide Column    

JXTaskPane

Functions Key Strokes Context
Toggle Expansion/Collapse See Accessing JXTaskPane with keyboard only and Issue 729. Key bindings do exist (Space/Enter for Win XP), however, JXTaskPane is not part of focus traversal. when ancestor of focused

Links

Topic SwingXKeyBindings . { Edit | Ref-By | Printable | Diffs r5 < r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r5 - 18 Feb 2009 - 14:04:16 - KleopatraX
Parents: WebHome > SwingLabs > SwingLabsSwingX