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 Display a modal dialog window in an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Display a modal dialog window in an applet" Watch "Display a modal dialog window in an applet" New topic
Author

Display a modal dialog window in an applet

Sowjanya Raghu
Greenhorn

Joined: Oct 29, 2000
Posts: 17
How do I display a modal dialog from an applet in a browser?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you use a JOptionPane it has several built in Modal Dialogs:
showConfirmDialog Asks a confirming question, like yes/no/cancel.
showInputDialog Prompt for some input.
showMessageDialog Tell the user about something that has happened.
showOptionDialog The Grand Unification of the above three.
[This message has been edited by Stephanie Grasson (edited March 06, 2001).]


"JavaRanch, where the deer and the Certified play" - David O'Meara
Jan Volkmann
Greenhorn

Joined: Feb 01, 2001
Posts: 17
Originally posted by Sowjanya Raghu:
How do I display a modal dialog from an applet in a browser?

For a custom dialog try this (uses browser as frame):

 
 
subject: Display a modal dialog window in an applet
 
Threads others viewed
Displaying error on an Applet
getText() method of JTextField returning an emty string
Progress Bar
Javascript help : Please
JDialog (non-modal) always on top
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com