Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A day without Mouse (Java keyboard Shortcuts)

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:

  1. How do you select/deselect a checkbox using the keyboard?
  2. 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:
enter image description here

PS: space didn't work

like image 495
Adel Boutros Avatar asked Jan 11 '12 09:01

Adel Boutros


1 Answers

To answer question #2, you can either press - and + keys from the NUMPAD, or use and arrow keys to collapse and expand trees.

like image 148
NathanChristie Avatar answered Nov 02 '22 23:11

NathanChristie