🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

populating JTable on the fly rather than hard coding the data

#12969
From: Madhusudan Chaganthi (Madhu)
Date: Wed, 14 Oct 1998 00:00
16 lines
1144 bytes
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: <3624A5BD.9B05E1DB@cdc.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

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