aspose file tools
The moose likes Swing / AWT / SWT and the fly likes mnemonic and wiondows L&F Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "mnemonic and wiondows L&F" Watch "mnemonic and wiondows L&F" New topic
Author

mnemonic and wiondows L&F

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i have this code:

when i see it with default L&F, i get the letter E with underscore, but if i use this code:

my E letter does not appear with underscore...
what might i do in order to correct this?

TiA


java amateur
Darrin Cartwright
Ranch Hand

Joined: Dec 27, 2002
Posts: 107
Hi Miguel,

I think this is actually a "feature" :roll: of the Windows XP look and feel. Try this, make sure the window containing the button has focus, and then hold down the "Alt" key. The mnemonic will then be displayed, as long as the "Alt" key is pressed.
With all of the possible Look and Feel classes, it's hard to determine whats a feature, and whats a bug.
Hope that helps!

Darrin


Life is good on the Ponderosa,<br />but mind where you step.
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
make sure the window containing the button has focus, and then hold down the "Alt" key. The mnemonic will then be displayed, as long as the "Alt" key is pressed.

yes, it does work that way on all buttons

thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mnemonic and wiondows L&F
 
Similar Threads
JPopupmenu not working w/ JComboBox metal L&F
2 Questions + 1 Meta-Question
Java array help
window decorations
Duplicate Characters