🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.beans
Article #8

Bean, which consists of other beans

#8
From: Richard Leitner
Date: Tue, 27 Oct 1998 00:00
15 lines
1611 bytes
I want to make a graphical bean, which consist of three graphical beans. If
I inherit MYBEAN from a container the Jbuilder handle MYBEAN as a CONTAINER
and the user of the bean can add components to MYBEAN. But I dont want that.
Is it possible to define, how the Bean is to be used, as a component or a
container?
If not, I have tried an other possiblity: MYBEAN is inherited from COMPONENT
and has a JPANEL as Member. In this JPANEL are three graphical components.
In the PAINT(Graphics g) method I assign the size of MYBEAN to the JPANEL
and then have written JPANEL1.PAINT(); Why the Bean only shows the JPANEL
and not the three Components in the Container. (the method PAINT in
COMPONENT calls the methods PAINTCOMPONENT, PAINTBORDER and PAINTCHILDREN).

Thanks in advance

Richard Leitner
Technical Details
Message-ID: <3635DC1F.A5C2BEE5@austriaone.at>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36220374.8E833B77@ubs.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcfbb,d03cf579e60ba3d1
X-Google-Attributes: gidfcfbb,public
X-Google-Thread: 101c4c,5cf54e7bad293e06,start
X-Google-Attributes: gid101c4c,public
From: Richard Leitner <r.leitner@austriaone.at>
Subject: Bean, which consists of other beans
Date: 1998/10/27
Message-ID: <3635DC1F.A5C2BEE5@austriaone.at>
X-Deja-AN: 405568011
Content-Transfer-Encoding: 7bit
References: <36220374.8E833B77@ubs.com>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@Austria.EU.net
X-Trace: fleetstreet.Austria.EU.net 909499376 9860 193.81.245.33 (27 Oct 1998 14:42:56 GMT)
Organization: Privat
Mime-Version: 1.0
NNTP-Posting-Date: 27 Oct 1998 14:42:56 GMT
Newsgroups: comp.lang.java.beans,borland.public.jbuilder.javabeans.writing