• 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

Focus traversal in applet different from MacOSX on Windows, Linux systems.

 
Ranch Hand
Posts: 35
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As a jar file my application moves focus via tab and CTRL tab keys on all systems. It moves the focus as intended as an applet on MacOS. (Strange: moving from the default button takes two tabs.)

When used as an applet, the results are incorrect on Windows on Linux. They differ between Windows on Linux.

On Linux the focus traverses normally until it reaches the starting point, the default button, then apparently moves to the browser or a higher window.

On Windows, the focus doesn't exist anywhere until a component is clicked, focus then moves normally.

I'm doing a requestFocusInWindow for the JPanel holding the components. And the focus moves correctly when the app is run as a jar file on all systems.

Thanks,

Chris
reply
    Bookmark Topic Watch Topic
  • New Topic