File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes change the focus to the new tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "change the focus to the new tab" Watch "change the focus to the new tab" New topic
Author

change the focus to the new tab

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 187
Hi,

When I am add new tab to JTabbedPane the focus is not change
How can I change the focus to the new tab ?

Thanks

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18121
    
    8

I just had a quick look at the API documentation and I see there's a setSelectedComponent method and a setSelectedIndex method.
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 187
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change the focus to the new tab
 
Similar Threads
Tabbing Out Of JEditorPane...
Tab question
Focus traversal problem in JTable
swing(JComboBox)urgent
JTable and tab - last fix before release! Yay!!