Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enter Key Behavior  RSS feed

kyle amburn
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JButtons in my swing application are performing different across the Microsoft platform. When the application is run on a computer using Win9x or Win XP the buttons do not respond to the enter key. On Windows 2000, the buttons do respond to the enter key.
All versions are running the same jre version. I might expect this kind of behavior from awt, but this shouldn�t happen with swing, should it?
I am using nested classes derived from AbstractAction to add the functionality. I would prefer not to have to add a KeyListener to each button and check for the Enter Key. Does anybody know why this would be occurring or have any suggestions to fix the cross platform problems?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!