🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding a row to a table model

#8589
From: ross
Date: Wed, 09 Aug 2000 00:00
20 lines
1122 bytes
You should be able to add an element to your vector or whatever data
structure feeds your
tableModel  then have your tableModel call (fireTableDataChanged, I think).

Ross

Lee-Ann <lmccallion@telesoft-technologies.com> wrote in message
news:39901961_1@dnews...
> Hi
>
> I am trying to add a row to a table using a button.  The addRow method
> exists for the DefaultTableModel which is the model I am using but I
cannot
> access this method or the model name inside the button
> Does this mean I have to override the existing addRow method or what???
>
> Thanks for any help
> Lee-Ann
>
>
Technical Details
Message-ID: <3991dd00$1_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39901961_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4a81d0c0aa0382c8
X-Google-Attributes: gid111d45,public
From: "ross" <rperry@commonvision.com>
Subject: Re: Adding a row to a table model
Date: 2000/08/09
Message-ID: <3991dd00$1_1@dnews>
X-Deja-AN: 656541055
References: <39901961_1@dnews>
X-Trace: 9 Aug 2000 15:36:48 -0800, 209.113.90.125
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300