Article View: borland.public.jbuilder.java.swing
Article #8629Re: How do i add a row to a JTable?
From: David W. Taylor
Date: Thu, 03 Aug 2000 00:00
Date: Thu, 03 Aug 2000 00:00
20 lines
1196 bytes
1196 bytes
Oh boy, have you got some reading to do. You basically need to read about the Model, View, Controller architecture of Swing. The Table class embodies the View and Controller parts and the TableModel class handles the data. Since the table can only show what is in the Model, your problem is solved by adding a row to the Table Model and telling the row to display the contents of the Model. The best place to start is the java.sun.com web site. Look for the Swing Tutorial. David "Alexis Rios" <arios@actpr.com> wrote in message news:3989dce6_1@dnews... > How do i add a row to a JTable.. > > There is an addColumn method but no addRow counterpart > >
Technical Details
Message-ID:
<398a0a6b_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3989dce6_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bf4b4ddda83a706f X-Google-Attributes: gid111d45,public From: "David W. Taylor" <davidt@detayls.com> Subject: Re: How do i add a row to a JTable? Date: 2000/08/03 Message-ID: <398a0a6b_1@dnews> X-Deja-AN: 654238605 References: <3989dce6_1@dnews> X-Trace: 3 Aug 2000 17:12:27 -0800, 10.143.14.153 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400