Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How to move focus from JTextArea using TAB key?

Share this post!
 Vote this!

The default behavior when pressing the tabular key in a JTextArea is to insert a tab spaces in the text area. In this example you'll see how to change this to make the tab key to transfer focus to other component forward or backward.
The main routine can be found in the key listener section. When the tab key is pressed we will tell the text area to transfer to focus into other component. Let's see the code snippet below.  more...

0 comments:

Post a Comment