🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8620

Re: JSplitPane: setResizeWeight()

#8620
From: Jeroen Zwartepoorte
Date: Thu, 03 Aug 2000 00:00
23 lines
1298 bytes
I'm currently using setResizeWeight: on the left is a JScrollPane with a
JTree, on the right is a JScrollPane with a JTextPane. The right pane is
awarded the getPreferredViewportSize() of the JTextPane.

Maybe you just need to have getMinimumSize() return the same as
getPreferredSize()?

Jeroen

"Robert Bj�rn" <rbj@home.se> wrote in message news:39807ff6_1@dnews...
> When I use setResizeWeight(1,0) on my split pane to ensure that the left
> component gets the extra space when the pane is resized, the right
component
> is sized according to its mimimum size by default. Is there any way to
avoid
> this, and instead have it resize to preferred size, as usual?
> resetToPreferredSized() does not appear to work.
>
> Regards,
> Robert
>
>
>
Technical Details
Message-ID: <8mbq06$3hk6@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39807ff6_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,9ada1a7f70a96f31
X-Google-Attributes: gid111d45,public
From: "Jeroen Zwartepoorte" <Jeroen@xs4all.nl>
Subject: Re: JSplitPane: setResizeWeight()
Date: 2000/08/03
Message-ID: <8mbq06$3hk6@bornews.borland.com>
X-Deja-AN: 654008794
References: <39807ff6_1@dnews>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing