🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18078

Re: ScrollPane issues

#18078
From: Paul Furbacher
Date: Mon, 17 Aug 1998 00:00
23 lines
1484 bytes
William Yu wrote:
> 
> Two issues I'm fiddling around with:
> 
> 1. When using Panel in a ScrollPane, FlowLayout acts differently. All
> components are placed in the same line no matter how many components
> you've layed down. The reasoning behind this is rather obvious -- with a
> scrolleable panel, the bounds are unlimited. But, I like to figure out
> someway of shortcircuiting this behavior -- I want only the vertical
> bounds to be unlimited.

I've been playing with this too, and have come across what
is apparently the solution.  But I can't say that I've
implemented it correctly, so I'll just point you down
the same path and see if you get there first.

I think you have to extend your panel so that it 
implements Scrollable.  With that, you gain control
over some of the layout madness that goes on with
JViewport.  


Paul Furbacher
Technical Details
Message-ID: <35D893BF.62B66A57@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35D0ACF2.5F6EE81C@Bigfoot.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ec12d5485686eea7
X-Google-Attributes: gidf74b3,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: ScrollPane issues
Date: 1998/08/17
Message-ID: <35D893BF.62B66A57@bilbo.bio.purdue.edu>
X-Deja-AN: 382070466
Content-Transfer-Encoding: 7bit
References: <35D0ACF2.5F6EE81C@Bigfoot.com>
To: William Yu <William_Yu@Bigfoot.com>
Content-Type: text/plain; charset=us-ascii
Organization: Biological Sciences, Purdue Univ.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.language