File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX:  mnemonics problem in windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX:  mnemonics problem in windows XP" Watch "NX:  mnemonics problem in windows XP" New topic
Author

NX: mnemonics problem in windows XP

Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
My mnemonics are acting weird in my windows XP development environment.
When I pull up the GUI, at first the underlines don't show up. However, if I then press the alt key only, they suddenly appear and work just fine. I expected that they would just automatically show as underlined when I first show the screen.
Sample GUI code that sets mnemonics:

Ideas?
TJ


SCJP, SCJD, SCWCD, SCBCD
joe black
Ranch Hand

Joined: Dec 03, 2003
Posts: 103
Are you using the default swing look and feel?

I had the same problem, until I used Metal.
Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
Hi Terry.
You are aware that that is a feature of XP that can be turned on/off?
If your app uses the system look and feel on XP, it will behave in that same way.


Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
I am using the default swing look and feel. Also, I don't know much about the specific features of XP that Jacques mentioned.
Are most folks using the Metal look and feel rather than default? I had understood that we were supposed to use the default.
TJ
Jacques Bosch
Ranch Hand

Joined: Dec 18, 2003
Posts: 319
Don't know about others, but I'm using System L&F.
So the app will look right at home on whatever OS it's running on.
Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
Jacques - so, do the mnemonics work for you? (i.e. display underlines right away, before you press the alt key the first time)
TJ
Xie Ruchang
Ranch Hand

Joined: Dec 25, 2003
Posts: 160
Hi folks,
Those using XP can turn off the feature by
1. Right click the desktop and select Properties
2. Select the Appearance tab.
3. Click the Effects botton.
4. Uncheck the last item "Hide underlined letters for keyboard
navigation until I press the Alt key".
5. Click OK twice.
You need not press [Alt] to see the underline anymore.

Best Regards
Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
Frankie -
YOU ROCK! Thanks - that worked perfectly on my Windows 2000 box at work, and I'll fix my home XP tonight.
TJ
Winona Whitener
Greenhorn

Joined: Sep 08, 2009
Posts: 1
Is there a way to override this programmatically? I can't rely on Windows or capable users with my program and I need to ALWAYS show the mnemonic letter.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5209
    
  12

Hi Winona,

I think it's better to open a new thread for your query (use an appropriate forum for it), instead of waking up the dead.

Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX: mnemonics problem in windows XP