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
2010-02-19 11:52:12
A:
Palani
2010-02-19 11:57:28
+1
A:
if(e.stateMask == SWT.CTRL && e.keyCode == 97){
TXTBOX.selectAll();
}
Palani
2010-02-19 12:40:38