Hello, as the subject states, it is about how to make the tab in our keyboard take the focus from one textarea to the next textarea.
I have found some code across the Internet, although it does not work because there is no clsTabOrder class in my function.
This is the code
Maybe somebody could tell me what is this clsTabOrder, or have another alternative for this problem.
Thank You.
I dont quite understand why you give me sscce. I guess my description is unclear so let me describe it one more.
It is not exactly a problem.
Just imagine you want to login your facebook account, first you insert the email textfield and press tab button to move to the password textfield. I want to know if I can apply that to my program.
For your information, I have two JTextArea and I want that when I press tab it moves to the next JTextArea
I found out a useful site which explains about this focus From reading this "Tab shifts the focus in the forward direction. Shift-Tab moves the focus in the backward direction. For example, in FocusConceptsDemo, the first button has the initial focus. Tabbing moves the focus through the buttons into the text area. Additional tabbing moves the cursor within the text area but not out of the text area because, inside a text area, Tab is not a focus traversal key. However, Control-Tab moves the focus out of the text area and into the first text field. Likewise, Control-Shift-Tab moves the focus out of the text area and into the previous component. The Control key is used by convention to move the focus out of any component that treats Tab in a special way, such as JTable."
I got the feeling that it is not possible to solve my problem