File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to set mnemonic key for the tabbedPane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to set mnemonic key for the tabbedPane?" Watch "How to set mnemonic key for the tabbedPane?" New topic
Author

How to set mnemonic key for the tabbedPane?

xiao li
Greenhorn

Joined: Apr 09, 2002
Posts: 13
URGENT!
Does anyone have the experience to set the mnemonic key for the tabbedPane? So the user can use the ALT+keyDefined to tabbed to the different panes?

Thanks a million!!
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
javax.swing.JButton button;
button.setText("abcdefg");
button.setMnemonic('c');
The result is that the 'c' letter on your button is underlined and the actions that are triggered by a click on the button will be triggered in the same way by ALT - c from the keyboard.


"JavaRanch, where the deer and the Certified play" - David O'Meara
xiao li
Greenhorn

Joined: Apr 09, 2002
Posts: 13
Thanks, but I need to set specific letter to access the title of the tabbedPane not the button.
waiting for your help......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set mnemonic key for the tabbedPane?