Article View: borland.public.jbuilder.java.language
Article #14630Re: Insert of delete a row in JTable
From: Steve Horsley
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
13 lines
1098 bytes
1098 bytes
If your model extends DefaultTableModel, then you can call setDataVector() with the new data[][]. You may need to then call fireTableChanged() or fireTableRowsInserted() (i don't know if this happens automatically). Steve //------------------------------------ Mullin wrote: > > Now, I have a Object data[][] array with static no of terms. I want to > insert or delete a row of data when I invoke some events (eg click a > button or something else). Is there any easy way to do so. I have made a > table model already.
Technical Details
Message-ID:
<37AEA249.34C06E78@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37AE82EC.ACAFC170@intern.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,da033bd569f5e589 X-Google-Attributes: gidf74b3,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: Insert of delete a row in JTable Date: 1999/08/09 Message-ID: <37AEA249.34C06E78@cwcom.co.uk> X-Deja-AN: 510539509 Content-Transfer-Encoding: 7bit References: <37AE82EC.ACAFC170@intern.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Cable & Wireless Communications Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language