🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: populating JTable on the fly rather than hard coding the data

#12970
From: Madhusudan Chaganthi (Madhu)
Date: Wed, 14 Oct 1998 00:00
23 lines
1306 bytes
Dont bother guys.
I figured it out.
thanks
Madhu

Madhusudan Chaganthi (Madhu) wrote:

> Hi
> I have a situation wherein I have a blank JTable in an application, only
> the columnName appears in the GUI rest all being empty. When the user
> clicks on a button, the JTable needs to populate it with the data which
> comes in with this button click under this column.
>
> I was trying DefaultTableModel with just the columnName. When I tried to
> add the data using addRow, nothing happens. I've tried setDataVector and
> other such methods too !!
>
> Could anyone tell me as to where I can get an example program or
> concepts for using JTable with dynamic data rather than hard coded data
> ?
>
> Thanks
> Madhu
Technical Details
Message-ID: <3624B505.70497C60@cdc.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3624A5BD.9B05E1DB@cdc.gov>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ecf0d7a095d3a983
X-Google-Attributes: gid111d45,public
From: "Madhusudan Chaganthi (Madhu)" <mvc9@cdc.gov>
Subject: Re: populating JTable on the fly rather than hard coding the data
Date: 1998/10/14
Message-ID: <3624B505.70497C60@cdc.gov>
X-Deja-AN: 400989107
Content-Transfer-Encoding: 7bit
References: <3624A5BD.9B05E1DB@cdc.gov>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing