Skip to main content

Locking cursor

1 reply [Last post]
reisneto
Offline
Joined: 2010-07-21
Points: 0

I have this situation:
There's a form with several TextBoxes (questions to answer)
The user must to answer current question to go to other question
so, How can I lock the cursor on the current question when user press down to skip it?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
reisneto
Offline
Joined: 2010-07-21
Points: 0

Solved:
When up/down Key is pressed the focus go to next textbox and actionPerformed function is called
so if textbox is empty, I request Focus again to this textbox.
requestFocus();
thank's.