• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use Multiple Keys in a JFrame

 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to add a JTextField to a JFrame on pressing (CONTROL+F) keys simultaneously for the code-



 
Fred Hamilton
Ranch Hand
Posts: 684
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the problem is that you don't know how to recognize ctrl-F from your KeyEvent, then you should find some answers here

http://www.faqs.org/docs/javap/c6/s5.html
 
Rob Camick
Ranch Hand
Posts: 2700
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use KeyEvents. Read the section from the Swing tutorial on How to Use Key Bindings for the solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!