Article View: borland.public.jbuilder.java.language
Article #18298Questions about modal Dialogs
From: Philippe Macaire
Date: Fri, 17 Jul 1998 00:00
Date: Fri, 17 Jul 1998 00:00
38 lines
1979 bytes
1979 bytes
I have 3 questions about Dialogs and "modality" of windows. 1) I need to build an application with two Frames (let's assume for now that we are using AWT), which the user can access independently. Each Frame can create a transient modal Dialog. Since the constructor requires the parent Frame, I expect the Dialog to be modal on the parent Frame, and only on that Frame (not on the other Frame of the application). Actually, using JDK 1.1.2 (on HP-UX) this is what I get. But using JBuilder 1.01 (on WinNT), what I get is that any modal Dialog made visible gets modal on the whole application! Is this the expected behavior? or have I done something wrong? Is there a "standard" behavior? 2) Now, let's get a bit further: from one of my Dialogs, I need to create another transient modal Dialog for data entry (nothing weird in that: just try from Word 97 "File/Open", which opens a modal dialog, and lets you open another modal dialog through "Advanced..."). But modal Dialogs can be created only with respect to a Frame, not to a Dialog. So how can I create a Dialog modal with respect to another Dialog? 3) Last question: do Swing classes change anything with respect to "modality" of dialogs and frames? Thanks for the time. Philippe. [This mail was initially sent to the IDE discussion group. I'm not sure that's the best place for it, so I'm trying with this one. I apologize for the "noise" it introduces.]
Technical Details
Message-ID:
<35AF5C9B.63849584@sodalia.it>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,95a7096c3ba8c1c9,start X-Google-Attributes: gidf74b3,public From: Philippe Macaire <macaire@sodalia.it> Subject: Questions about modal Dialogs Date: 1998/07/17 Message-ID: <35AF5C9B.63849584@sodalia.it> X-Deja-AN: 372352579 Content-Transfer-Encoding: 7bit Organization: Sodalia S.p.A. (Telecom Italia-Bell Atlantic) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language