How do I display a modal dialog from an applet in a browser?
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
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
posted
0
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