• Post Reply Bookmark Topic Watch Topic
  • New Topic

Action firing by enter key  RSS feed

 
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.
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invoke doClick on the components.
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!