🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: hide rows in JTable?

#9513
From: Trey Ethridge
Date: Mon, 06 Mar 2000 00:00
28 lines
1639 bytes
Well, thanks for the help.  I'm busy with school right now so my project
has been put on hold, but I'll be sure to let everyone know how it goes
in a week or two.

Sincerely,
Trey Ethridge



Tor Iver Wilhelmsen wrote:
> 
> John P. McGrath <JPMcGrath@fast.net> writes:
> 
> > Those two are all you need to change if everything is guaranteed to be
> > static.  But if the data can change, the job gets more complicated.
> 
> No, because you change the _model's_ getRowCount() and getValueAt()
> methods, not the JTable's.
> 
> > But you also need to listen for changes in the underlying table model,
> 
> No, because that's the one you're working in.
> 
> > map the unfiltered row numbers to filtered row numbers, and fire table
> > model events with the filtered row numbers.  Of course you will have to
> > ignore events that only describe changes to filtered rows.
> 
> You just don't fire them.
Technical Details
Message-ID: <38C42FEC.AA33F23A@db.erau.edu>
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> <uk8jizsx7.fsf@sds.no> <MPG.132befc0c63e2db9897d9@forums.borland.com> <u66v1wyb0.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8e0f666ae34fba12
X-Google-Attributes: gid111d45,public
From: Trey Ethridge <ethridgt@db.erau.edu>
Subject: Re: hide rows in JTable?
Date: 2000/03/06
Message-ID: <38C42FEC.AA33F23A@db.erau.edu>
X-Deja-AN: 593997427
Content-Transfer-Encoding: 7bit
References: <38B969F1.FC38DF02@db.erau.edu> <MPG.13236cbbe6eb6d2a9897c7@forums.borland.com> <89qbui$r9s4@bornews.borland.com> <uk8jizsx7.fsf@sds.no> <MPG.132befc0c63e2db9897d9@forums.borland.com> <u66v1wyb0.fsf@sds.no>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Embry-Riddle University
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing