🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Why there isn't JTable.addRow(...) ???

#7480
From: Torsten Welches
Date: Wed, 24 Jan 2001 12:18
23 lines
1564 bytes
Edilmar,

addColumn is just a convenience method to change the column model.
You change the table model to add rows dynamically.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#data

Good luck,
Torsten


Edilmar Alves <edilmar@intersite.com.br> wrote:
>Hi,
>
>I would like to add rows dinamically to JTable, but
>I found only JTable.addColumn to add columns, and
>there isn't JTable.addRow.
>
>Is there some other way to do this ? I don't want to
>fix the number of rows into JTable constructor, cause
>the user can type many data into JTextFields and I
>need to put these data into JTable rows.
>
Technical Details
Message-ID: <3a6ec80d$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!207.105.83.65
References: <3A6EB77B.C0E65F95@intersite.com.br>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c30f9a7933fd736e
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-24 04:21:55 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: Why there isn't JTable.addRow(...) ???
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <3A6EB77B.C0E65F95@intersite.com.br> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a6ec80d$1_1@dnews>
Date: 24 Jan 2001 04:18:21 -0800
X-Trace: 24 Jan 2001 04:18:21 -0800, 207.105.83.65
Lines: 24
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!207.105.83.65