🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7878

Re: JDialog and Z-Order

#7878
From: Kent Chambers
Date: Tue, 05 Dec 2000 00:00
24 lines
1705 bytes
John McGrath  [TeamB] <ng-b@JPMcGrath.net> wrote:
>On Wed, 29 Nov 2000 16:33:41 -0500, David Robison wrote:>
>> I have a JFrame (A) that creates a second JFrame (B). The frame
>> B is on top of frame A. Then, as a result of an internal event,
>> frame A creates a JDialog (C). This causes frame B to drop behind
>> frame A and dialog C is on top of frame A. Is there a way to
>> create dialog C so that the z-order is frame A, frame B, dialog C
>> (i.e. without having frame B go to the background?)?
>
>A dialog always stays with its parent frame in the z-order.  I presume 
>that you have specified frame (A) as the parent frame for dialog (C).  
>If you do not want the dialog to stay with the frame, then do not 
>specify that frame as its parent.  You can use a hidden frame for the 
>dialog's parent.  i.e. specify new Frame() as the parent argument.
>
>-- 
>Regards,
>
>John McGrath [TeamB]
>
>---------------------------------------------------
>Before sending me e-mail, please read:
>    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3a2d0dcd$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A257634.C465167@kimley-horn.com> <MPG.148fe985958451e989d79@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,84490d5c3859bc3a
X-Google-Attributes: gid111d45,public
From: "Kent Chambers" <kchambers@kimley-horn.com>
Subject: Re: JDialog and Z-Order
Date: 2000/12/05
Message-ID: <3a2d0dcd$1_2@dnews>
X-Deja-AN: 701395102
Sender: "Kent Chambers" <kchambers@kimley-horn.com>
References: <3A257634.C465167@kimley-horn.com>  <MPG.148fe985958451e989d79@forums.borland.com> 
X-Trace: 5 Dec 2000 07:46:21 -0800, 207.105.83.65
Reply-To: "Kent Chambers" <kchambers@kimley-horn.com>
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 38.179.159.156 38.179.159.156