🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Horizontal scrollbar not showing

#20
From: Wallace Fukumae
Date: Sat, 07 Apr 2001 03:07
39 lines
2539 bytes
Make sure you to set the jdbNavList.setPreferredSize(new Dimension(x,y))

You might want to check to see how large the column is and
setPreferredSize
based on the column in the DataSet.

Judith Masthoff wrote:
> 
> 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

-- 
SPAWAR Systems Center		Wallace Fukumae
C4I Programs HI, D424		work: (808) 474-0220
675 Lehua Ave			fax:  (808) 474-8445
Pearl City, HI 96782		email:fukumae@spawar.navy.mil
Technical Details
Message-ID: <3ACE848D.AF97669F@spawar.navy.mil>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-xfer.nuri.net!enews.sgi.com!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3AC4584A.61A32902@brighton.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7f236b61997a0b6
X-Google-Attributes: gid111d45,public
X-Google-Thread: f8eda,7f236b61997a0b6
X-Google-Attributes: gidf8eda,public
X-Google-ArrivalTime: 2001-04-06 20:16:02 PST
Message-ID: <3ACE848D.AF97669F@spawar.navy.mil>
Date: Fri, 06 Apr 2001 17:07:57 -1000
From: Wallace Fukumae <fukumae@spawar.navy.mil>
Organization: SPAWAR Systems Center D424
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: Re: Horizontal scrollbar not showing
References: <3AC4584A.61A32902@brighton.ac.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 198.55.4.29
X-Trace: dnews 986612891 198.55.4.29 (6 Apr 2001 20:08:11 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-xfer.nuri.net!enews.sgi.com!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews