• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Enter Key Behavior  RSS feed

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!