🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: z-order

#8404
From: John P. McGrath
Date: Tue, 19 Sep 2000 00:00
23 lines
1411 bytes
On Sun, 17 Sep 2000 20:12:11 -0400, Steve wrote:

> Well, maybe thats the problem.  I guess I thought a canvas
> was "lighter" than a panel.

I was talking about a javax.swing.JPanel, not a java.awt.Panel.

I assume that you are using Swing, since this is a Swing newsgroup.  Is 
that correct?  If so, then you probably should not be instantiating any 
of the heavyweight components from the java.awt package.  When you mix 
heavyweight and lightweight component, you see the kind of symptoms that 
you describe, with the heavyweight component appearing in front of the 
lightweight one, when it should be behind.

Note that you will probably want to use references to java.awt classes, 
since all Swing components are derived directly or indirectly from a 
java.awt class.  But that is not the same as creating an instance of a 
java.awt class.

-- 
Regards,

John McGrath
Technical Details
Message-ID: <MPG.1430e5a376ba4448989b4e@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39C25B4B.92200116@teleworx.com> <MPG.142cf23774403038989b3e@forums.borland.com> <39C55DDB.D0A08961@capu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2dfb64fd57cfef81
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: z-order
Date: 2000/09/19
Message-ID: <MPG.1430e5a376ba4448989b4e@forums.borland.com>
X-Deja-AN: 671528718
References: <39C25B4B.92200116@teleworx.com> <MPG.142cf23774403038989b3e@forums.borland.com> <39C55DDB.D0A08961@capu.net>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing