Article View: borland.public.jbuilder.java.swing
Article #8571Re: Adding a row with a Jbutton
From: Ian Atkinson
Date: Tue, 08 Aug 2000 00:00
Date: Tue, 08 Aug 2000 00:00
15 lines
1057 bytes
1057 bytes
Lee-Ann wrote: > > Hi > > I am trying to add a row to a JTable using a button command. > I am using the defaultTableModel and there is a method addRow( ). > The problem is initiating this method from the button. The variable name of > the table model is not visible inside the button. > > Thanks > Lee-Ann try, ((DefaultTableModel)table.getModel()).addRow( )
Technical Details
Message-ID:
<398FFABD.66F228AE@labs.mot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<398feeda_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bd6def7290194c36 X-Google-Attributes: gid111d45,public From: Ian Atkinson <atkinson@labs.mot.com> Subject: Re: Adding a row with a Jbutton Date: 2000/08/08 Message-ID: <398FFABD.66F228AE@labs.mot.com> X-Deja-AN: 655815352 Content-Transfer-Encoding: 7bit References: <398feeda_1@dnews> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@mot.com X-Trace: schbbs.mot.com 965736922 26346 182.1.83.2 (8 Aug 2000 12:15:22 GMT) Organization: Motorola Mime-Version: 1.0 NNTP-Posting-Date: 8 Aug 2000 12:15:22 GMT Newsgroups: borland.public.jbuilder.java.swing