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 Applet with JFilechooser called from a Javascript blocks paint messages to Browser 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 "Applet with JFilechooser called from a Javascript blocks paint messages to Browser" Watch "Applet with JFilechooser called from a Javascript blocks paint messages to Browser" New topic
Author

Applet with JFilechooser called from a Javascript blocks paint messages to Browser

zapata zane
Greenhorn

Joined: Dec 08, 2007
Posts: 4
Hi,

I am trying to create an applet that can:

1) be called from a Javascript
2) displays a file selection dialog for multi-selecting files
3) returns the selected filenames in a string to the JavaScript
I am able to use doPrivileged to apply the necessary security context to launch a JFilechooser and return the filenames selected. However, When the JFilechooser dialog is visible and the user moves the dialog window around the HTML pages dose not receive any repaint messages. They seem to be blocked by the thread that launched the JFilechooser dialog and is probably blocking update events as the dialog is still visible.

I know I need some type of a message pump so the child thread can inform the parent thread and the browser to repaint. However, I don't know how to do this.

Please help.

 
 
subject: Applet with JFilechooser called from a Javascript blocks paint messages to Browser
 
Similar Threads
How to keep formatting while reading files
Applet with JFilechooser called from a Javascript blocks paint messages to Browser
JFileChooser 1.5
Applet with JFilechooser called from a Javascript blocks paint messages to Browser
JFileChooser issue - opens at the back of the browser