• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

setting taborder

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do i set the taborder of the Jtextfields within the JFrame?
 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well if youre using a JTabbedPane, you just add the tabs
in the order which you want them to be displayed.

i.e.

//displays a frame with two tabs.
public static void main(String[] args)
{
JFrame f = new JFrame();
JTabbedPane j = new JTabbedPane();
j.addTab("Panel 1" , new JPanel());
j.addTab("Panel 2" , new JPanel());

f.getContentPane.add(j);

f.setVisible(true);
}

-j
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
create your own FocusTraversalPolicy

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/FocusTraversalPolicy.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic