🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JDialog and Z-Order

#7943
From: John McGrath TeamB
Date: Thu, 30 Nov 2000 00:00
23 lines
1453 bytes
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: <MPG.148fe985958451e989d79@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A257634.C465167@kimley-horn.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: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JDialog and Z-Order
Date: 2000/11/30
Message-ID: <MPG.148fe985958451e989d79@forums.borland.com>
X-Deja-AN: 699487800
References: <3A257634.C465167@kimley-horn.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing