Article View: borland.public.jbuilder.java.language
Article #18134ScrollPane issues
From: William Yu
Date: Tue, 11 Aug 1998 00:00
Date: Tue, 11 Aug 1998 00:00
19 lines
1505 bytes
1505 bytes
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. 2. The next item I was playing around with was to redesign the look of ScrollPane. I extended a Container, set the Layout to BorderLayout, placed a ScrollPane (with the parameter of SCROLLBARS_NEVER) in the Center and had scroll buttons in the NSEW layout areas. The problem I'm having is trying to emulate the SCROLLBARS_AS_NEEDED behavior. While I can get the size of the center Panel and compare it to the ScrollPane's viewport, I don't know how to trigger this comparison when objects are added to the panel (or panels inside the panel). Ideas here would be welcome.
Technical Details
Message-ID:
<35D0ACF2.5F6EE81C@Bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ec12d5485686eea7,start X-Google-Attributes: gidf74b3,public From: William Yu <William_Yu@Bigfoot.com> Subject: ScrollPane issues Date: 1998/08/11 Message-ID: <35D0ACF2.5F6EE81C@Bigfoot.com> X-Deja-AN: 380172012 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: American All-Risk Group (AARG) Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language