This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Focus traversal in applet different from MacOSX on Windows, Linux systems. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Focus traversal in applet different from MacOSX on Windows, Linux systems." Watch "Focus traversal in applet different from MacOSX on Windows, Linux systems." New topic
Author

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

Chris Kimball
Ranch Hand

Joined: Apr 23, 2012
Posts: 32

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Focus traversal in applet different from MacOSX on Windows, Linux systems.
 
Similar Threads
how to deploy a Swing Applet that accesses the System Clipboard
applet not display in RHL firefox3
Need help to create an .sh or .bin file
client properties of JRootPane
Distributing apps as jar files