Article View: borland.public.jbuilder.java.swing
Article #8815Re: Insert rows in the JTable
From: John P. McGrath
Date: Fri, 14 Jul 2000 00:00
Date: Fri, 14 Jul 2000 00:00
19 lines
972 bytes
972 bytes
On Thu, 13 Jul 2000 13:05:01 -0500, Khanh H. Ly wrote:
> The JTable is initialized with fix columns and rows.
> I would like to add more rows to the table during runtime.
> Is there a way to do this?
You need to modify your table through the TableModel.
Take a look at "The Java Tutorial" on the Sun web site:
http://java.sun.com/docs/books/tutorial/
It has some pretty good descriptions of how to work with tables, and
other Swing components as well.
--
Regards,
John McGrath
Technical Details
Message-ID:
<MPG.13d8886b7ad83a13989a39@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<396E04CD.155122CE@intervoice-brite.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ec8e56347e278d0c X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: Insert rows in the JTable Date: 2000/07/14 Message-ID: <MPG.13d8886b7ad83a13989a39@forums.borland.com> X-Deja-AN: 646228154 References: <396E04CD.155122CE@intervoice-brite.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing