This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TabbedPane cycling" Watch "TabbedPane cycling" New topic
Author

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.

Thanks
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2191
    
    7


To understand why the above works check out the Key Bindings entry.
 
GeeCON Prague 2014
 
subject: TabbedPane cycling