Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tabbing bewteen textfields

 
Michael Bell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JPanel containing text fields. By default when the tab key is pressed traversal is horizontal rows and then columns. I wish to go down the column first. Can this be done simply or must I do

public class MyOwnFocusTraversalPolicy
extends FocusTraversalPolicy { .....
 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Default tab-order is according to the components added to JPanel. First
try to add components as they are in tab-order. If that doesnot work then implement your own tab-order policy.

Regards..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic