tags:

views:

183

answers:

3

im using java SWT application. i cant select all text in a text box or text area by CTRL+A. is there any way to achieve it?

A: 

Ideally as per LAF doco, if you have set the correct look and feel you should get this automatically.

UIManager.setLookAndFeel(
            UIManager.getCrossPlatformLookAndFeelClassName());

If not see what they have done here http://www.roseindia.net/java/example/java/swing/copy-data-from-ms.shtml

Calm Storm
+1  A: 

if(e.stateMask == SWT.CTRL && e.keyCode == 97){
TXTBOX.selectAll(); }

Palani