Today I decide to make a resolution which consist of testing my Java application using the keyboard solely.
But I am faced with some obstacles:
- How do you select/deselect a checkbox using the keyboard?
- How do you collapse/expand items in a
JTree?
All help will be much appreciated!
UPDATE:
Here is an example of a checkbox I want to select:

PS: space didn’t work
To answer question #2, you can either press - and + keys from the NUMPAD, or use ← and → arrow keys to collapse and expand trees.