🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTable wierdness Solved!!!

#7927
From: Greg Tomalesky
Date: Wed, 29 Nov 2000 05:02
17 lines
1527 bytes
Hi all:

    After much hair pulling (not much left at my age!), I decided to
solve this problem (see previous post) by brute force. What I eventually
did was grab the vector (getDataVector)  and enumerate through all the
rows removing the desired column (removeElementAt(selectedColumnIndex)).
Then I set the updated data vector back into the existing model. That
solved the problem!
<soapbox>
    It would be nice if row and column manipulations were symetrical i.e
addRow/removeRow addColumn/removeColumn and from within either the table
model or the table itself. It would also be nice if those methods worked
as you would expect.
</soapbox>

Thanks to all the respondants
Greg
Technical Details
Message-ID: <3A248DF3.9A0D8465@nfdc.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,291f8ea76cf7cf8e,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-11-28 21:00:49 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: Greg Tomalesky <delta4@nfdc.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JTable wierdness Solved!!!
Date: Wed, 29 Nov 2000 00:02:43 -0500
Organization: Another Netscape Collabra Server User
Lines: 19
Message-ID: <3A248DF3.9A0D8465@nfdc.net>
NNTP-Posting-Host: asc303.nfdc.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-20 i586)
X-Accept-Language: en