🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #56

Re: JTable & JScrollPane

#56
From: Holger von Thomsen
Date: Wed, 08 Sep 1999 00:00
23 lines
1818 bytes
In article <7r5lih$9n7$1@news3.Belgium.EU.net>,
  "Raf Lenaerts" <raf.lenaerts@student.luc.ac.be> wrote:
> I have written a MyTable (extending JTable) with MyTableModel and
> MyTreeCellRenderer. The data that gets displayed is correct, but I am
> having troubles with the displaying of the data. All columns have a
> fixed width (I don't know why) and don't adjust to the width of my
> table. Either their is some space after the last column, or the last
> column does not get displayed.
> If I put the MyTable in a JScrollPane then there are never any
> scrollbars.

Check for the scrollBarPolicies of the ScrollPane.
Set them to as_needed or as_always.
Then check the weight and autoscrolls settings for the cells.
Check the insets and internal padding settings for the cells also.
And set fixedWidth to false it there is such property.

HTH
Holger


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Technical Details
Message-ID: <7r5q79$f99$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7r5lih$9n7$1@news3.Belgium.EU.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,27c1ee62fab07e84
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,27c1ee62fab07e84
X-Google-Attributes: gid10fd6d,public
From: Holger von Thomsen <hthomsen@my-deja.com>
Subject: Re: JTable & JScrollPane
Date: 1999/09/08
Message-ID: <7r5q79$f99$1@nnrp1.deja.com>
X-Deja-AN: 522515724
References: <7r5lih$9n7$1@news3.Belgium.EU.net>
X-Http-Proxy: 1.0 proxy.omnilink.net:8080 (Squid/2.1.PATCH1), 1.0 x32.deja.com:80 (Squid/1.1.22) for client 194.64.29.225, 194.64.25.25
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Wed Sep 08 14:01:22 1999 GMT
X-MyDeja-Info: XMYDJUIDhthomsen
Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.6 [de] (WinNT; I) via Squid Cache version 1.0.20