• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Do I mininmise a Java Frame using the keyboard??

 
colette cronin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I minimise a Java Frame using the keyboard??
i.e. I want to be able to do "Alt space n" but I do not know
how to set a mnemonic to the JFrame
Regards
Colette
 
Luong Nguyen
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You should overwrite processKeyEvent(KeyEvent) method where you catch the event that correspond to ALT SPACE then you use setVisible or setState method to minimise your frame.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic