🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15039

When getParent() is available ?

#15039
From: Christophe
Date: Tue, 13 Jul 1999 00:00
12 lines
1036 bytes
Hi

I've done a component derived from Panel. I need to know if I'm executing in
an applet or in a stand alone application. To do that I use the getParent
function and test if I can assigned it to a java.applet.Applet and this
until getParent() is null. It's running well.
But if i use it in the constructor, it failed, the parent seems to be not
available.
Where must I put this code? I've tried to override the validate method but
it failed so.

Thanks in advance.
Technical Details
Message-ID: <7mfs4t$g521@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4151ac4308879afd,start
X-Google-Attributes: gidf74b3,public
From: "Christophe" <cespern@ragemail.com>
Subject: When getParent() is available ?
Date: 1999/07/13
Message-ID: <7mfs4t$g521@forums.borland.com>
X-Deja-AN: 500583379
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language