🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ScrollPane

#17024
From: Michael Nguyen
Date: Mon, 28 Dec 1998 00:00
24 lines
1313 bytes
I have a couple of questions about using awt.ScrollPane in an
awt.Applet.

1. If I place components (ie buttons, labels) directly inside the
ScrollPane, then
    they are not displayed corretly.  The first component is expanded
automatically
   to take up the entire area of the scrollpane.  I have to put a
awt.panel inside the scrollpane
   first and add the other components to the awt.panel.  Is it required
by design
   to have a panel inside the scrollpane ?  If not, how do I avoid using
an extra panel ?

2. When I set the layout for the scrollPane to any settings
(BorderLayout, null, etc), it
    would fail at run-time where it tries to set the layout manager.  Is
ScrollPane
    not allowed to set a layout manager by design  ?  If so, why does it
have setLayout method ?

Thanks for the info.

Michael,
Technical Details
Message-ID: <3687F9A3.6DB7A55F@home.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: f74b3,2d9e0b03ff0521dc,start
X-Google-Attributes: gidf74b3,public
From: Michael Nguyen <michaelmn@home.com>
Subject: ScrollPane
Date: 1998/12/28
Message-ID: <3687F9A3.6DB7A55F@home.com>
X-Deja-AN: 426561997
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language