Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setMnemonic: not visible on Windows native look and feel  RSS feed

 
Ken Seehof
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I create a menu and apply setMnemonic on some items, when using native look and feel the expected underlines do not show up, with notable exception of checkbox items (which do show up). The keystrokes associated with the mneumonics work fine even though they are not displayed.
When I use cross platform look and feel every shows as it should.
I am running on Windows XP 5.1. Java VM 1.4.1-b12. JBuilder 8.0.140.0 SE.
Can anyone else confirm this? Does this also happen on other platforms?
Is there a fix or a workaround?
Thanks,
Ken
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the Alt key to expose the mnemonics on Win xp.
 
Ken Seehof
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I tried that. Hitting Alt has no effect for me.
Interestingly, check box items always have mneumonics underlined,
whether I access the menu using the mouse or with Alt. Strange.
For example, typing Alt-F brings up my file menu as expected, but
again, no underlines (except checkbox items).
Other applications (such as IE) behave as you describe, however.
Therefore it appears to be a java-swing-programming issue.
Ken
 
Ken Seehof
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was unclear: by "hitting Alt has no effect for me" what I mean that
hitting Alt does not show mneumonics (it brings up the menu without
showing mneumonics).
- Ken
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!