This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes question about down arrow key in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "question about down arrow key in swing" Watch "question about down arrow key in swing" New topic
Author

question about down arrow key in swing

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Hi,

I am working on some old swing code.
I have a swing form composed of combo boxes (actually components that mimic JComboBox behavior) and text fields. Say, I have a textfield on the top, and two combo boxes at the bottom. If user clicks textfield first, and press down arrow key, it goes down to the editable text field of first combo box, if user press key again, it goes to second combo box.

My question is: can I prevent user from using down arrow key to go through the form fields? instead, they can use tab key to go through fields, once they are at one of combo boxes, then user can use down arrow key to surf through combo box list.

I am wondering what controls the behavior of down arrow key events? Just have spent tons of time, and have not been able to figure it out.


regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about down arrow key in swing
 
Similar Threads
Printing in swing
facing difficulty in form fields and manue bar in my jsp page
Retrict copy from a text field
Problems in Form reset button
keycode capturing not working