File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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="" target="_blank" rel="nofollow"></a>
Consider Paul's rocket mass heater.
subject: GUI question about tabbedPane
It's not a secret anymore!