Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I control tabbing through components

Status
Not open for further replies.

CINC

Programmer
Oct 30, 2001
17
0
0
US
I have an array of JTextFields in GridBagLayout in a JPanel and instead of tabbing through them horizontally, then wrapping around, I want to be able to tab vertically (down), then wrap back up to the top of the next column.

I really need help with this one.

Thanks,
CINC
 
All subclasses of JComponent can use the setNextFocusableComponent() method to explicitly define what component gets tabbed to next. You have to set it on every component in your JPanel to override the defaults.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top