🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

jTable how do I remove a row??

#9544
From: Site View Technologies
Date: Mon, 13 Mar 2000 00:00
20 lines
1267 bytes
First adventure into swing JTables.  I would simply like to
know how to delete an entire row, I have looked high and low
but have not found a solution.

The syntax:
jTable1.removeRow(int); is not available so the debugger
says.

using code:
static JTable jTable1 = new JTable(robust.dset,
robust.headers);//dset is a String[][] and headers is a
String[].
to setup the table and it works fine. Also using a
JScrollPane for the scrolling.
I assume the default table model is called to handle some
behind the scenes action, but it doesn't like the row idea.
Adding rows work well just not the removal of rows.

Should I override the default model, is there a simply trick
to this, or should I select another type of view format.
Technical Details
Message-ID: <38CCF49C.ED4DF7ED@siteviewtech.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f6e9713f1cd0f5b6,start
X-Google-Attributes: gid111d45,public
From: Site View Technologies <mzraik@siteviewtech.com>
Subject: jTable how do I remove a row??
Date: 2000/03/13
Message-ID: <38CCF49C.ED4DF7ED@siteviewtech.com>
X-Deja-AN: 596848286
Content-Transfer-Encoding: 7bit
Organization: Site View Technologies
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing