• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Enter Key Behavior

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
Thanks,
Kyle
 
You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic