File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet with JFilechooser called from a Javascript blocks paint messages to Browser