Bookmark Topic Watch Topic
  • New Topic

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

 
zapata zane
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.



[ December 09, 2007: Message edited by: zapata zane ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of this topic; please don't post the same question to multiple forums.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!