🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JScrollPane for JTable in a GridBagLayout

#643
From: Oliver
Date: Fri, 01 Apr 2005 15:57
15 lines
1309 bytes
Hello,

now i have tried the following approach:

table.setAutoResizeMode (JTable.AUTO_RESIZE_OFF);
scroller.setHorizontalScrollBar(new JScrollBar());
table.setAutoResizeMode (JTable.AUTO_RESIZE_OFF);

this is almost ok (at least i can scroll the table now) 
- but it looks somewhat odd (i can scroll the table horizontally, but i have to pull the scrollbar up and down to do this).

regards

Oliver
Technical Details
Message-ID: <424d6f6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424d5a0c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,85f8a271796300bf
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Oliver" <o.maas@nospam_metrohm.de>
Sender: "Oliver" <o.maas@nospam_metrohm.de>
Reply-To: "Oliver" <o.maas@nospam_metrohm.de>
Subject: Re: JScrollPane for JTable in a GridBagLayout
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 81.90.37.2     
X-Forwarded-For: 192.168.103.10, 127.0.0.1
References:  <424d5a0c$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <424d6f6d$1@newsgroups.borland.com>
Date: 1 Apr 2005 07:57:33 -0800
X-Trace: newsgroups.borland.com 1112371053 207.105.83.66 (1 Apr 2005 07:57:33 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail