hi lenny!

JDialog should do the job for you.  use one of these constructors:

- JDialog(Dialog owner, boolean modal)
Creates a modal or non-modal dialog without a title and with the specified
owner dialog.

- JDialog(Dialog owner, String title, boolean modal)
Creates a modal or non-modal dialog with the specified title and the
specified owner frame.

- JDialog(Frame owner, boolean modal)
Creates a modal or non-modal dialog without a title and with the specified
owner Frame.

- JDialog(Frame owner, String title, boolean modal)
Creates a modal or non-modal dialog with the specified title and the
specified owner Frame.

[http://java.sun.com/j2se/1.3/docs/api/javax/swing/JDialog.html]

should work well in an application.  in an applet, i have had problems, as
the dialog box is only modal to its parent component, and not the browser it
was spawned off of.

prakrity

--- ORIGINAL MESSAGE ---
From: "Reynshteyn, Leonid" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: ModalDialog that is always on top.
Date: Wed, 11 Apr 2001 16:41:01 -0400

Does anyone know how to create a modal dialog box in Java Swing that is
always on top of other components (i.e., can't be hidden by the other
components until the user closes it)?

Thanks.
-----------------------------------
Lenny Reynshteyn
Goldman Sachs
New York


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to