Hi All,
In applets, I have one TextArea.In that I need to override the Tab key functionality with select all content in that text area.
If you press the tab it should select all the content which text area has.
Here I add keylistener to textarea, I am writing like this
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_TAB) {
textArea.selectAll();
}
}
Then KeyTyped and KeyPressed I didnot write any thing. Here I am getting selection for all content but, in second tab hit the content is replace with empty value.
How to overcome this issue..
Regards,
Krishna