🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Missing ScrollBars in splitpane.

#9643
From: Nils-Erik Thorell
Date: Fri, 25 Feb 2000 00:00
93 lines
3798 bytes
--------------AA2ECC4C96F9E5F25189E2FA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I think I have found the problem myself.
If I avoid setting the 'preferred size' of each component,
the program will figure out when to show the scrollbars correctly.
By the way, I was trying to do exactly as in the 'Project' window
in JBuilder, with 2 trees in a vertical split window to the left.

/Nils Thorell

rwilkman wrote:

> Nils-Erik:
>
> What version of the JDK and what version of JFC.
>
> -Rich
>
> Nils-Erik Thorell wrote:
> >
> > In a JSplitPane I did put two JScollPanes with JTree inside them.
> > However, the scrollbars appear inconsistantly.
> > Sometimes they never show up, sometimes they are there all the time.
> > It is either a bug, or extremely hard to configure.
> > The prefered size of each component seems to play an important role.
> > My goal is to have the scrollbars appear only when the trees are
> > expanded.
> > I strongly suspect a bug in the component since the problem only appears
> >
> > when scrolling inside a split window.
> >
> > net@es.sigma.se
>
> --
> =====
> Rich Wilkman
> Senior Quality Assurance Engineer
> JBuilder Team
>
> If something in this post looks like an opinion, walks like an
> opinion and quacks like an opinion, it's mine and not that of
> my employer.
>
> If you are reading this from a newsgroup post, don't send mail.
> =====

--------------AA2ECC4C96F9E5F25189E2FA
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I think I have found the problem myself.
<br>If I avoid setting the '<i>preferred size</i>' of each component,
<br>the program will figure out when to show the scrollbars correctly.
<br>By the way, I was trying to do exactly as in the 'Project' window
<br>in JBuilder, with 2 trees in a vertical split window to the left.
<p>/Nils Thorell
<p>rwilkman wrote:
<blockquote TYPE=CITE>Nils-Erik:
<p>What version of the JDK and what version of JFC.
<p>-Rich
<p>Nils-Erik Thorell wrote:
<br>>
<br>> In a JSplitPane I did put two JScollPanes with JTree inside them.
<br>> However, the scrollbars appear inconsistantly.
<br>> Sometimes they never show up, sometimes they are there all the time.
<br>> It is either a bug, or extremely hard to configure.
<br>> The prefered size of each component seems to play an important role.
<br>> My goal is to have the scrollbars appear only when the trees are
<br>> expanded.
<br>> I strongly suspect a bug in the component since the problem only
appears
<br>>
<br>> when scrolling inside a split window.
<br>>
<br>> net@es.sigma.se
<p>--
<br>=====
<br>Rich Wilkman
<br>Senior Quality Assurance Engineer
<br>JBuilder Team
<p>If something in this post looks like an opinion, walks like an
<br>opinion and quacks like an opinion, it's mine and not that of
<br>my employer.
<p>If you are reading this from a newsgroup post, don't send mail.
<br>=====</blockquote>
</html>

--------------AA2ECC4C96F9E5F25189E2FA--
Technical Details
Message-ID: <38B64D62.A56DFBE2@es.sigma.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38B5740D.849A17B5@es.sigma.se> <38B5A7CA.3BFF3F31@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,33034bb93dc8d44
X-Google-Attributes: gid111d45,public
From: Nils-Erik Thorell <net@es.sigma.se>
Subject: Re: Missing ScrollBars in splitpane.
Date: 2000/02/25
Message-ID: <38B64D62.A56DFBE2@es.sigma.se>
X-Deja-AN: 589787522
References: <38B5740D.849A17B5@es.sigma.se> <38B5A7CA.3BFF3F31@inprise.com>
To: rwilkman <rwilkman@inprise.com>
X-Accept-Language: en
Content-Type: multipart/alternative; boundary="------------AA2ECC4C96F9E5F25189E2FA"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: net@te.mah.se
Newsgroups: borland.public.jbuilder.java.swing