🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Sowamber Alan Thu, 25 Nov 2004 20:11
JTable
#915
Author: Sowamber Alan
Date: Thu, 25 Nov 2004 20:11
6 lines
1121 bytes
Hello!!
I want to know how i can modify a JTable (insert a row for example) when i 
click on a button.
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.
Thanks. 
Re: JTable
#917
Author: John McGrath [TeamB]
Date: Sat, 27 Nov 2004 08:22
23 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads