🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem when resizing a JList in a JScrollPane

#12440
From: Anne JANSSENS
Date: Wed, 30 Dec 1998 00:00
26 lines
1407 bytes
Hi, is there someone who can help ?

I have a list with 5 items, only 2 must be visible, so I add my JList in a
JScrollPane to have a
vertical scrollingbar.

When I resize my frame, I resize also my list and the scrollpane by asking :
- my_jlist.setSize(new_width, new_height);
I ask to fix also the height and width of all my items :
my_jlist.setFixedCellHeight(new_height);
my_jlist.setFixedCellWidth(new_width);

- my_jscrollpane.setSize(new_width, new_height);

The problem is that by the resizing, the vertical scrollingbar disappears, I
can see all the items
in the list by scrolling with the arrows ( that let me perhaps know that the
scrollbar is no more yet visible), but what
do I miss ?
Something strange, is that when I give my frame its initial size, the
scrolling bar is visible !

I think I do not perform to resize my scrollpane, any ideas, solutions or
suggestions ?

Thanks a lot, :) Anne
Technical Details
Message-ID: <76cpa1$qll4@forums.borland.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: 111d45,7288c80da9099ea3,start
X-Google-Attributes: gid111d45,public
From: "Anne JANSSENS" <recherche@generix.fr>
Subject: Problem when resizing a JList in a JScrollPane
Date: 1998/12/30
Message-ID: <76cpa1$qll4@forums.borland.com>
X-Deja-AN: 427054195
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing