This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes invoking dialog box from Applet results in Hang of IE browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "invoking dialog box from Applet results in Hang of IE browser" Watch "invoking dialog box from Applet results in Hang of IE browser" New topic
Author

invoking dialog box from Applet results in Hang of IE browser

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Hello All,
I am trying to invoke a dialog from browser,
ie Applet --> Press a Button --> opnes a Frame -->
with a button -> click on the button, should open a dialog.
but when this dialog opens! the who;e applet hangs.
Any one any clue???
Require quick solution
Linda Jones
Ranch Hand

Joined: Aug 17, 2002
Posts: 57
What do you mean by "hangs".
Is it possible you are talking about a modal Dialog. If you open a modal dialog you can't do anything else in the applet until you close the dialog.
If you don't want a modal Dialog you can specify this in the Dialog constructor by setting modal to false.
From API:
Dialog
public Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner frame, title, and modality.
Parameters:
owner - the owner of the dialog
title - the title of the dialog. A null value will be accepted without causing a NullPointerException to be thrown.
modal - if true, dialog blocks input to other app windows when shown

Linda
 
wood burning stoves
 
subject: invoking dialog box from Applet results in Hang of IE browser
 
Similar Threads
Can Servlet display AWT Component in the browser?
Need help from experts for FileDialog()
NT Problem..
showModelessWindow() in IE restricts javascript to applet communication
Display a modal dialog window in an applet