This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tabbing bewteen textfields  RSS feed

 
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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!