🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Horizontal scrollbar not showing

#21
From: Judith Masthoff
Date: Mon, 09 Apr 2001 09:51
24 lines
1921 bytes

Wallace Fukumae wrote:

> 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.

What values should I use for x and y? How do I check how large the column
is?
I have tried something like
the_querydataset.getColumn(column_name).getWidth,
but have problems with the column_name, even though the query is something
like
"get column_name from the_table where.." and
the_list.setColumnName(column_name), it gives a runtime error on the column
name.
What value for y? I could multiple the row count of the querydataset with
the fixed
cell height attribute of the list, but does not feel very elegant.. I
thought scrollpanes
were supposed to figure out themselves when a scrollbar is needed..
Technical Details
Message-ID: <3AD1860A.58D21CF6@brighton.ac.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3AC4584A.61A32902@brighton.ac.uk> <3ACE848D.AF97669F@spawar.navy.mil>

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-09 03:12:53 PST
Message-ID: <3AD1860A.58D21CF6@brighton.ac.uk>
Date: Mon, 09 Apr 2001 10:51:06 +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: Re: Horizontal scrollbar not showing
References: <3AC4584A.61A32902@brighton.ac.uk> <3ACE848D.AF97669F@spawar.navy.mil>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.62.183.36
X-Trace: dnews 986810791 193.62.183.36 (9 Apr 2001 03:06:31 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews