Article View: borland.public.jbuilder.java.swing
Article #917Re: JTable
From: John McGrath [TeamB]
Date: Sat, 27 Nov 2004 08:22
Date: Sat, 27 Nov 2004 08:22
23 lines
1844 bytes
1844 bytes
On 11/25/2004 at 3:11:04 PM, Sowamber Alan wrote:
> I want to know how i can modify a JTable (insert a row for example) when
> i click on a button.
You need to update the TableModel for the table.
> When I try to change JTable property, my application don't display the
> updated JTable. I must resize the frame to display the updated JTable.
It is hard to tell what you are doing wrong, since you do not show what
you are doing. It seems likely that the model is not firing the
appropriate table events when you make the change. This is probably
because you are not updating the model properly.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<xn0dq92gihy7fi005@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41a63c59@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,8f03ab1af51f9340 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JTable Newsgroups: borland.public.jbuilder.java.swing References: <41a63c59@newsgroups.borland.com> User-Agent: XanaNews/1.16.5.1 Message-ID: <xn0dq92gihy7fi005@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:00000078 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 151.197.15.240 Date: 27 Nov 2004 01:22:45 -0700 X-Trace: newsgroups.borland.com 1101547365 151.197.15.240 (27 Nov 2004 01:22:45 -0700) Lines: 23 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail