Article View: borland.public.jbuilder.java.api
Article #2494Filtering rows in a TableModel
From: Trejkaz Xaoza
Date: Fri, 17 Nov 2000 00:00
Date: Fri, 17 Nov 2000 00:00
14 lines
1331 bytes
1331 bytes
I have the need in an application I'm writing to provide multiple views of a single, large List. The way to do it would probably be to have some kind of automatic filtering list, which could provide a window onto an existing list for all elements satisfying a certain condition. Problem is I can't figure out how. I just spent an hour tearing my hair out trying to solve this one. Or maybe there's a way to do it further up. This List is being encased in a TableModel for rendering as a JList, so maybe it's possible to set a filtering attribute on the TableModel to restrict the elements it shows. I don't know... help! TX
Technical Details
Message-ID:
<Kq9R5.3528$BU4.9705@news1.blktn1.nsw.optushome.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,551ef8fbcbadea43,start X-Google-Attributes: gid1089d0,public From: "Trejkaz Xaoza" <trejkaz@xaoza.net> Subject: Filtering rows in a TableModel Date: 2000/11/17 Message-ID: <Kq9R5.3528$BU4.9705@news1.blktn1.nsw.optushome.com.au> X-Deja-AN: 694711409 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@optushome.com.au X-Trace: news1.blktn1.nsw.optushome.com.au 974463786 203.164.9.4 (Fri, 17 Nov 2000 23:23:06 EST) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 17 Nov 2000 23:23:06 EST Newsgroups: borland.public.jbuilder.java.api