Article View: borland.public.jbuilder.java.swing
Article #12907Re: 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
30 lines
1675 bytes
1675 bytes
Hello, Now that you know how, please share it with me. I want to do something similair. 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 Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<70a0ng$qe0$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@logicsouth.com Subject: Re: populating JTable on the fly rather than hard coding the data Date: 1998/10/17 Message-ID: <70a0ng$qe0$1@nnrp1.dejanews.com> X-Deja-AN: 402124451 References: <3624A5BD.9B05E1DB@cdc.gov> X-Http-Proxy: 1.1 x1.dejanews.com:80 (Squid/1.1.22) for client 208.150.160.55 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Oct 17 11:57:36 1998 GMT Newsgroups: borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)