Article View: borland.public.jbuilder.java.swing
Article #12559Re: Box container
From: Vladimir Olenin
Date: Fri, 25 Dec 1998 00:00
Date: Fri, 25 Dec 1998 00:00
46 lines
2452 bytes
2452 bytes
Hi, Max,
Want to say only one thing about Swing's BoxLayout: NEVER USE IT! I
experimented with both GridBagLayout and BoxLayout for a VERY long time,
and it became obvious to me, that BoxLayout is VERY buggy. That is a
component putten into Box can (and practically very often do) overlap
frame borders. It's much better to spent a little bit more time 4
studying GridBagLayour than wasting time in vain attempts to lay
component out with BoxLayout in the way u DO want. Swing are great
classes except these ones.
DON"T DO THE MISTAKE I DID! USE GRIDBAGLAYOUT!
Thought it could help,
Vladimir
Max Polk wrote:
>
> I see the BoxLayout2, which I previously learned was a bean to support
> the BoxLayout that Sun failed to turn into a bean.
>
> But where is Box? The Box container uses a BoxLayout, but also does nice
> things (struts and glue), as well as be a good thing for laying certain
> things out.
>
> I could not place a Box on the component palette because Swing does not
> include it as a bean, and JBCL does not encapsulate it as a bean either!
>
> I'm trying to avoid GridLayout and GridBagLayout completely (which means
> I have to avoid XYLayout as well which you are supposed to convert to
> GridBagLayout prior to deployment according to the JBuilder's developer's
> guide), and things like BorderLayout and FlowLayout are essentials.
>
> With nested panels, I can do anything with BorderLayout and
> FlowLayout. But due to resizing considerations, I cannot use FlowLayout
> (which would wrap things when I size larger) so I need Box.
>
> Any ideas? Any Box wrappers, like Box2 or something? Thanks!
--
>~~~~~~~~<=============>~~~~~~~~<
Be yourself no matter what they say...
Join in Java community now!
http://www.geocities.com/SiliconValley/Heights/9815
>~~~~~~~~<=============>~~~~~~~~<
Technical Details
Message-ID:
<3682D760.1D98A31A@collegemail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.10ec6b0f9d44d8e89896a3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,80a2b3639594a3ce X-Google-Attributes: gid111d45,public From: Vladimir Olenin <keenonjava@collegemail.com> Subject: Re: Box container Date: 1998/12/25 Message-ID: <3682D760.1D98A31A@collegemail.com> X-Deja-AN: 425625079 Content-Transfer-Encoding: 7bit References: <MPG.10ec6b0f9d44d8e89896a3@forums.borland.com> X-Accept-Language: en,ru Content-Type: text/plain; charset=koi8-r Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing