Article View: borland.public.jbuilder.java.swing
Article #1102Re: How do I get at the root pane of JApplet and it's members?
From: Ted Byers
Date: Fri, 26 Mar 2004 15:55
Date: Fri, 26 Mar 2004 15:55
19 lines
1832 bytes
1832 bytes
Thanks John. It is all working now.
I am curious, though. Please consider the following lines of code:
getContentPane().add(jLabel2, new XYConstraints(277, 108, 94, 65));
getContentPane().add(jLabel1, new XYConstraints(17, 23, 753, 548));
I noticed that each time I put one or the other to the back, the order of
these statements gets changed when I look at the source after making the
change. This is the sequence I needed to get everything to work (jLabel2 is
the invisible label and jLabel1 holds the picture). Is it described
somewhere that the order in which components are added to a pane determines
their Z-order, and that the last component added will be behind the first?
None of the references I have used describe this (in fact one says that if I
want to control Z-order, I need to use the layered pane).
Thanks again
Ted
Technical Details
Message-ID:
<406455b4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4061f46f@newsgroups.borland.com> <406366a8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,5588570eabbf8052 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-26 08:10:30 PST From: "Ted Byers" <r.ted.byers@sympatico.ca> Newsgroups: borland.public.jbuilder.java.swing References: <4061f46f@newsgroups.borland.com> <406366a8$1@newsgroups.borland.com> Subject: Re: How do I get at the root pane of JApplet and it's members? Date: Fri, 26 Mar 2004 10:55:08 -0500 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.95.240.180 Message-ID: <406455b4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080317364 65.95.240.180 (26 Mar 2004 08:09:24 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail