Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action firing by enter key

 
ujar abc
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

is there any idea to make focus component(button/radiobutton/checkbox/etc) fires there respective action method in java when enter is pressed.
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invoke doClick on the components.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic