🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JSplitPane - how to control divider location?

#10940
From: Lois Neo
Date: Wed, 28 Jul 1999 00:00
17 lines
1148 bytes
Hi,

I have used a JSplitPane to split 2 JScrollPane so that one is above the
other.  At run time initially, the top scrollpane contains a JTree while the
bottom one does not contain any child component yet.
The problem is, when my app runs, the divider is located such that the top
scrollpane is not seen, the rest of the space is occupied by the bottom
scrollpane.
How to control the divider location so that both scrollpanes are equally
visible?
I've used the setDividerLocation() method and it works only during design
time but not run time.

--
Thanks for any help given

Lois
Technical Details
Message-ID: <7nl0ch$5ho11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d93cae09098feac5
X-Google-Attributes: gid111d45,public
From: "Lois Neo" <slneo@cybergal.com>
Subject: JSplitPane - how to control divider location?
Date: 1999/07/28
Message-ID: <7nl0ch$5ho11@forums.borland.com>
X-Deja-AN: 505891780
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Lois Neo" <slneo@cybergal.com>
Newsgroups: borland.public.jbuilder.java.swing