Article View: borland.public.jbuilder.java.language
Article #15054Re: When getParent() is available ?
From: Tor Iver Wilhelmsen
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
18 lines
1084 bytes
1084 bytes
"Christophe" <cespern@ragemail.com> writes:
> Thanks for the answser but it is not the problem.
> I need to call the function from my component and not from the applet or the
> application where I put it. I want to know if there's a method of the panel
> which is call when the panel has been add to the container and so when the
> parent is available.
It's available after addNotify():
Container parent = null;
// ...
public void addNotify() {
super.addNotify(); // Don't forget this!!!
parent = getParent();
}
Technical Details
Message-ID:
<ug12rzdpe.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7mfs4t$g521@forums.borland.com> <378BB900.FEAA4205@inprise.com> <7mhoo2$29h8@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4151ac4308879afd X-Google-Attributes: gidf74b3,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: When getParent() is available ? Date: 1999/07/14 Message-ID: <ug12rzdpe.fsf@sds.no> X-Deja-AN: 500884082 Sender: towi@SDSA1761 References: <7mfs4t$g521@forums.borland.com> <378BB900.FEAA4205@inprise.com> <7mhoo2$29h8@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language