[5456] in java-interest

home help back first fref pref prev next nref lref last post

Modal dialogs? Doesn't seem supported ...

daemon@ATHENA.MIT.EDU (Bob Beck)
Fri Feb 9 22:56:51 1996

Date: Fri, 09 Feb 1996 17:50:15 -0800
To: java-interest@java.sun.com
From: Bob Beck <rbk@ibeam.jf.intel.com>

I'm trying to write a stand-alone Java application with the GUI written in
AWT.  One of the features I need is the ability to put up a dialog asking
the user for some information.  Such dialogs need to be "modal", in the
sense they are on Win32 - ie, the thread that put up the dialog blocks until
the dialog is done, and (ideally) the UI of the parent window doesn't
process commands while the modal dialog is open.

This doesn't seem to be supported in any reasonable fashion in Java 1.0;
java.awt.Dialog has a "modal" boolean in its constructor, but this only
seems to mean the window is on top of the creating (parent) window - it
doesn't provide the behaviour I want.  I have ideas on how to handle this,
but it's nowhere near as simple as it should be.  The desired behaviour is
trivial in VC++ or VB, BTW.

I've seen some other posted questions in the past on this topic, but no
answers.  Can anyone provide insight into how to do this?
--
Bob Beck                      rbk@teleport.com
Intel Corporation             http://www.teleport.com/~rbk/
rbk@ibeam.intel.com           AOL: RDBeck
(503)264-8856                 CIS: 71674,106

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post