🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Horizontal scrollbar not showing

#19
From: Judith Masthoff
Date: Fri, 30 Mar 2001 09:56
25 lines
1928 bytes
I am using a JdbNavList, put on a scrollpane.
The content of the list changes run-time, using a
parameterized query. Vertical scrollbar seems to
work fine. Horizontal scrollbar does not work.
I have different problems for two list:
- In one list, the items of the list are long, and the
scrollbar does not show.
- In the other list, the items are very short, but the
scrollbar insists on showing.
I have noticed that changing the "preferred size"
attribute of the list can make a difference, but not the
kind of difference I want (it is not dependent on the
size of the actual items). I have tried calling validate,
or revalidate on the scrollpane when the query is executed
but that did not make a difference.

Any ideas?

JScrollPane     Example_ScrollPane  = new JScrollPane();
JdbNavList     Example_dbNavList  = new JdbNavList();
contentPane.add(Example_ScrollPane, null);
Example_ScrollPane.getViewport().add(Example_dbNavList, null);

Best wishes,
Judith
Technical Details
Message-ID: <3AC4584A.61A32902@brighton.ac.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!news.boerde.de!dnews!193.62.183.36

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7f236b61997a0b6,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: f8eda,7f236b61997a0b6,start
X-Google-Attributes: gidf8eda,public
X-Google-ArrivalTime: 2001-03-30 02:54:04 PST
Message-ID: <3AC4584A.61A32902@brighton.ac.uk>
Date: Fri, 30 Mar 2001 10:56:26 +0100
From: Judith Masthoff <judith.masthoff@brighton.ac.uk>
Organization: University Of Brighton
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.dbswing
Subject: Horizontal scrollbar not showing
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.62.183.36
X-Trace: 30 Mar 2001 02:11:12 -0800, 193.62.183.36
Lines: 26
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!news.boerde.de!dnews!193.62.183.36