This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes TabbedPane cycling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TabbedPane cycling" Watch "TabbedPane cycling" New topic

TabbedPane cycling

Sege Stephen
Ranch Hand

Joined: Oct 06, 2007
Posts: 51
I would like to implement TabbedPane cycling for my Gui. If you look at firefox or IE 7, and you have many tabs opened, you can navigate using ctrl + tab, I would like this type of functionality in my Application. I have search online and cannot find anything, I can actually use short key by assigning a tab a number - ie Alt + 1 , for tab 1 ; Alt + 2 , for tab 2; Alt + 3 , for tab 3 and so on...... but that is not so cool. if you do control + tab, it is better that way..

Text books don't usually mention these things, if you have a reference code, it would be better.

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152

To understand why the above works check out the Key Bindings entry.
I agree. Here's the link:
subject: TabbedPane cycling
Similar Threads
about JTabbed Pane
GUI question about tabbedPane
Focus: cant find the relevant method