Question

I use Red Hat 6.3 and JRE 1.7.

When opening a file chooser out of an applet it is not modal. When clicking somewhere which is not the file chooser's area it moves behind the applet and the applet is frozen until you minimize the browser to close it.

I experienced already the same problem with modal dialogs in general. But there I found a workaround: 1.

Is there a way to solve this problem under Linux or is there a Java version where this is problem does not occur?

Was it helpful?

Solution

Is there a way to solve this problem under Linux

Convert the applet to a frame and (presuming that solves the problem) launch the frame using Java Web Start.

But just to check, do you see the same behavior in this applet? It is sand-boxed and not using the JFileChooser as such, but if you to try to open or save a file it should pop a UI in a modal dialog.

OTHER TIPS

When clicking somewhere which is not the file chooser's area it moves behind the applet and the applet is frozen until you minimize the browser to close it.

  • then result is correct JFileChooser is modal under Linux

  • Swing JComponents are lightweight then (caused) they are always behing heavyweight AWT Components

  • have to change Applet to JApplet and all Components inside to change to JComponents

  • more about Mixing Heavyweight and Lightweight Components

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top