• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display a modal dialog window in an applet

 
Sowjanya Raghu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I display a modal dialog from an applet in a browser?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Jan Volkmann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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):

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic