• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

swing mnemonic Problem not display at windows

 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi All,

I am working on Swing. I have problem to see swing mnemonic at my Menu and button. I read many foruma they said this is windows problem. Please help me how to resolve this issue without changing windows setting.

 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please help me how to resolve this issue without changing windows setting.



Its a windows settting. If you don't want to change the windows setting, then don't use the Windows LAF. The Metal LAF works fine.
 
Nishan Patel
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I can not change my look and feel... is there any other solution ??
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Until you TellTheDetails we won't be able to help you.
 
Nishan Patel
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using

to set our all swing base windows look and feel, But the thing is we have already set mnemonic to all our windows menu and some of buttons also. But I am unable to find mnemonic at my menu and button.

If I change windows setting then I got the solution but I don't want that solution. Let me know if your want more clarification on this.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you could try html, but sounds like it'll be a lot of modification work, if you have many

JMenuItem open = new JMenuItem("Open");
becomes
JMenuItem open = new JMenuItem("<html>Open</html>");

[EDIT]
OK, that posting attempt failed
supposed to read
"html tag~underline tag~O~close underline tag~pen~close html tag"
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using WinXP?
If yes, there is a setting somewhere which allows you to show/hide the mnemonics.
 
Rob Camick
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If I change windows setting then I got the solution but I don't want that solution.



The reason its a Windows setting is because eash user can choose what they like.

If a user likes to see the mnemonic then they can change the Window setting, because it takes effect for all applications not just the one you write.

If a user doesn't like the mnemonic then they leave it as is.

You should NOT force your preferences on every user!
 
Nishan Patel
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, I am using XP but my requirement all the user able to show the mnemonic without changing XP settings.. ... so give me solution if it is possible...

Please let me know if it is possible...
 
Nishan Patel
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Michael Dunn wrote:you could try html, but sounds like it'll be a lot of modification work, if you have many

JMenuItem open = new JMenuItem("Open");
becomes
JMenuItem open = new JMenuItem("<html>Open</html>");

[EDIT]
OK, that posting attempt failed
supposed to read
"html tag~underline tag~O~close underline tag~pen~close html tag"



yes, but my poupose to show underline solve with HTML but what about user press Alt+mnemonic key . How can I set this ?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> but what about use press Alt+mnemonic key . How can I set this ?

how would you do it if not windows L&F?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic