🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JList with scrollbar

#13244
From: zimmerer
Date: Tue, 25 Aug 1998 00:00
13 lines
765 bytes
Does anybody out there knows how to add a scrollbar to a JList??
I've tried the follow:

JList list = new JList();
JScrollPane scroll = new JScrollPane(list);

.......nothing happens, no scrollbar at all even I've added 1000 items
to the box.
Can anyone HELP me!

thx.

alex
Technical Details
Message-ID: <35E2A7B4.B5EC3479@cimag.de>
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,b5ee876fbd119f83,start
X-Google-Attributes: gid111d45,public
From: zimmerer <a.zimmerer@cimag.de>
Subject: JList with scrollbar
Date: 1998/08/25
Message-ID: <35E2A7B4.B5EC3479@cimag.de>
X-Deja-AN: 384525787
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.swing