Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hotkeys in applets using awt

Saira Murty
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a menu with hotkeys in applet using AWT only.
I have 2 frames , the top frame contains the applet(menu).I have used PopupMenu passing MenuShortcut in the conmstructor/calling the setShortcut method of MenuItem. Tho' it displays the short cut key in the PopupMenu( ctrl-C) but does nothing when the shortcut key is pressed.
I have added ActionListener to the MenuItem and it responds to mouseClicks properly.The problem is with the shortcut keys only.I want to use AWT only.
Please give me a viable solution preferably with example
The code is as folls.

(Edited by Cindy to format code)
[ October 08, 2002: Message edited by: Cindy Glass ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic