Article View: borland.public.jbuilder.java.swing
Article #11323Re: JTable: fixing first collumn while scrolling horizontally
From: Dave Postill
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
30 lines
1956 bytes
1956 bytes
[This followup was posted to comp.lang.java.gui, cc: the cited author, Peter Meulmeester] In article <7jgcme$25mh$1@thor.wirehub.nl>, on Mon, 7 Jun 1999 14:05:32 +0200, "Peter Meulmeester" <pmeulm@wirehub.nl> wrote: > > Hi, > > I need to build a gui where the fist collumn of a table moves along > with the data when the user scolls vertically, but stays fixed, (and > thus visible) when the user scrools horizontally. I can think of 2 ways > of doing this? > > 1- use one JTable and work on the TableModel to fool the JTable. > > 2- Use two JTables, one for the data and one for the single first > collumn. Then somehow fix the vertical scrollbar to both JTables. > > Any advice and tips on doing this? "Fixed Columns": <http://www.codeguru.com/java/articles/128.shtml> davep -- Dave Postill Investment Intelligence Systems Corp Galaxy Support Leader +44 (0) 171 628 6960 [voice] <mailto:davep@iisc.co.uk> +44 (0) 171 638 7528 [fax] <mailto:dave.postill@pobox.com> <http://www.iisc.co.uk>
Technical Details
Message-ID:
<37659057.1840744871@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7jgcme$25mh$1@thor.wirehub.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c1563a844f181141 X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,c1563a844f181141 X-Google-Attributes: gid10fd6d,public From: davep@iisc.co.uk (Dave Postill) Subject: Re: JTable: fixing first collumn while scrolling horizontally Date: 1999/06/09 Message-ID: <37659057.1840744871@news.demon.co.uk> X-Deja-AN: 487542567 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: iiscgate.iisc.co.uk:194.159.8.1 References: <7jgcme$25mh$1@thor.wirehub.nl> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 928944326 nnrp-03:25007 NO-IDENT iiscgate.iisc.co.uk:194.159.8.1 Organization: Investment Intelligence Systems Corp MIME-Version: 1.0 Reply-To: davep@iisc.co.uk Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui