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

Underlining access key in AWT  RSS feed

 
bapi dhar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dear Friend
I cannot help myself getting an underline in the access
key like letter f in file menupad
please help
thanx
bapi
 
David Freels
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When creating your menu, use the setMnemonic('f') to get the letter underlined.
Hope this helps.
David
 
bapi dhar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friend
This relates to AWT.
This is not working ... HELP..... YELP.....

mb=new MenuBar();
fmnu=new Menu("File");
fmnu.setMnemonic('F'); // not working
MenuItem n=new MenuItem("New");
n.setMnemonic('N'); //not working
MenuItem s=new MenuItem("Save");
fmnu.add(s);
mb.add(fmnu);
f1.setMenuBar(mb);
bapi


[This message has been edited by bapi dhar (edited March 10, 2001).]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!