Skip to main content

TabIndex problem: from horizontal method to vertical method. How Can I Do?

1 reply [Last post]
fanny983
Offline
Joined: 2010-03-14
Points: 0

Hi, I use a GridBagConstraints for manage an input form but I have problem with tabIndex because the default method is horizontal tab but i would like a vertical tab.
how can i do?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rturnbull
Offline
Joined: 2005-08-27
Points: 0

Assuming you are using a JTabbedPane, use setTabPlacement(int placement)

See JavaDocs for options http://java.sun.com/javase/6/docs/api/
See also tutorial http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html