File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about down arrow key in swing

 
rick collette
Ranch Hand
Posts: 208
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic