🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BoxLayout

#18331
From: Greg Hamer
Date: Wed, 08 Jul 1998 00:00
25 lines
1578 bytes
BoxLayout is not a JavaBean, so the designer cannot manipulate it as nicely
as other layouts. If you use BoxLayout2 in the designer, you
can switch it by hand to BoxLayout by changing the class variable
defininition from BoxLayout2 boxLayout21 = new BoxLayout2();
to just BoxLayout boxLayout21; and then add a line to the beginning of the
jbInit method to create the box layout for the container that will use it:
boxLayout21 = new BoxLayout(container,BoxLayout.X_AXIS);  remove any setAxis
calls generated for the boxLayout2 and
your are in buisiness. Be sure that the container specified in the BoxLayout
constructor matches the the one doing the setLayout call, or the exception
thrown by BoxLayout during addNotify will make the designer very unhappy.

Bernie de la Torre wrote:

> Why doesn't BoxLayout appear as one of my choices  in the Inspector for a
> Jpanel?
>
> There is a BoxLayout2, but this includes JBCL stuff in your source.
> I need to keep to pure awt/swing.
>
> Is there a work-around for this?
>
> Thanks,
>
> Bernie
Technical Details
Message-ID: <35A3BB0E.21CD2683@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6n8u3m$23n4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8a7910b5606aece2
X-Google-Attributes: gidf74b3,public
From: Greg Hamer <ghamer@inprise.com>
Subject: Re: BoxLayout
Date: 1998/07/08
Message-ID: <35A3BB0E.21CD2683@inprise.com>
X-Deja-AN: 369620905
Content-Transfer-Encoding: 7bit
References: <6n8u3m$23n4@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language