🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: hide rows in JTable?

#9598
From: Tor Iver Wilhelmsen
Date: Sat, 04 Mar 2000 00:00
9 lines
931 bytes
"Trey Ethridge" <ethridgt@earthlink.net> writes:

> How would you suggest to actually hide the rows?  I'm not sure how the
> TableModel can "hide" the rows from the jTable.  Do you mean that the new
> TableModel will have another copy of the data inside it that only has the
> rows that I want to show?

Just let getRowCount() and getValueAt() "skip" the rows you don't want
displayed.
Technical Details
Message-ID: <uk8jizsx7.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38B969F1.FC38DF02@db.erau.edu> <MPG.13236cbbe6eb6d2a9897c7@forums.borland.com> <89qbui$r9s4@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8e0f666ae34fba12
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: hide rows in JTable?
Date: 2000/03/04
Message-ID: <uk8jizsx7.fsf@sds.no>
X-Deja-AN: 593082285
Sender: towi@SDSA1761
References: <38B969F1.FC38DF02@db.erau.edu> <MPG.13236cbbe6eb6d2a9897c7@forums.borland.com> <89qbui$r9s4@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing