• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing mnemonic Problem not display at windows

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • 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.

 
Rob Camick
Ranch Hand
Posts: 2613
9
  • Mark post as helpful
  • send pies
  • 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
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I can not change my look and feel... is there any other solution ??
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Until you TellTheDetails we won't be able to help you.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • 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.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • 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
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 2613
9
  • Mark post as helpful
  • send pies
  • 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
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • 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
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic