learn java
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 The Software Craftsman this week in the Agile 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: 2282

To understand why the above works check out the Key Bindings entry.
I agree. Here's the link: http://aspose.com/file-tools
subject: TabbedPane cycling