Article View: borland.public.jbuilder.java.swing
Article #12906Re: populating JTable on the fly rather than hard coding the data
From: dreiland
Date: Sat, 17 Oct 1998 00:00
Date: Sat, 17 Oct 1998 00:00
29 lines
1707 bytes
1707 bytes
Hello, since you figured this out. Maybe you could shared it with me. I am interested in doing something like this as well. thanks, Doug In article <3624A5BD.9B05E1DB@cdc.gov>, "Madhusudan Chaganthi (Madhu)" <mvc9@cdc.gov> 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 > > -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
Technical Details
Message-ID:
<7092he$ne2$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: dreiland@my-dejanews.com Subject: Re: populating JTable on the fly rather than hard coding the data Date: 1998/10/17 Message-ID: <7092he$ne2$1@nnrp1.dejanews.com> X-Deja-AN: 402023702 References: <3624A5BD.9B05E1DB@cdc.gov> X-Http-Proxy: 1.1 x9.dejanews.com:80 (Squid/1.1.22) for client 208.150.160.78 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Oct 17 03:08:33 1998 GMT Newsgroups: borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)