Tab key on JTextArea

A

Ahmed Moustafa

How can the focus be moved to the next focusable component when a tab
key is pressed on a JTextArea?

Thanks in advance!
 
X

xarax

Ahmed Moustafa said:
How can the focus be moved to the next focusable component when a tab
key is pressed on a JTextArea?

Thanks in advance!

Try ctrl-TAB to move out the JTextArea. If you really
want TAB, rather than ctrl-TAB (the default), then you
must override the KeyStroke and Action objects for
the TAB key on the InputMap for the JTextArea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top