🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JSplitPane does not remember the divider

#9564
From: John P. McGrath
Date: Tue, 29 Feb 2000 00:00
18 lines
1144 bytes
On Mon, 28 Feb 2000 11:54:41 +0100, Nils-Erik Thorell wrote:

> Is it a bug or a feature?
> 
> It seens to be impossible to set the divider position,
> it will always go back to "29".   And then it shows up
> at the top edge of the splitpane.

The JSplitPanes layout manager sets the divider position based on the 
preferred and minimum sizes of the components.  Setting the divider 
position before the JSplitPane has been realized will have no effect, 
since the layout manager will reset the divider position.  After the 
JSplitPane has been realized, setting the divider position will work.

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.132533118c0249ed9897cb@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38BA53F1.1799F1B6@es.sigma.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,797b2cd8aaf16ca9
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JSplitPane does not remember the divider
Date: 2000/02/29
Message-ID: <MPG.132533118c0249ed9897cb@forums.borland.com>
X-Deja-AN: 591201390
References: <38BA53F1.1799F1B6@es.sigma.se>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing