jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes GUI question about tabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "GUI question about tabbedPane" Watch "GUI question about tabbedPane" New topic

GUI question about tabbedPane

xiao li

Joined: Apr 09, 2002
Posts: 13
How can I set a mnemonic key for a tabbedPane?
So the user can use ALT+key to tab to the different tabbedPane?
Thanks a lot.
Col Bell

Joined: Mar 21, 2002
Posts: 12
If you're using JDK1.4 you can use
public void setDisplayedMnemonicIndexAt(int tabIndex, int mnemonicIndex)

Col<br /><a href="http://www.squirrelsql.org" target="_blank" rel="nofollow">http://www.squirrelsql.org</a>
It is sorta covered in the JavaRanch Style Guide.
subject: GUI question about tabbedPane