• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable -Update and reresh

 
Arjun Shastry
Ranch Hand
Posts: 1903
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to write simple program where data in TableModel is updated and JTable gets refreshed and shows the updted data.I am using NetBeans to define JTable.
I am extending AbstractTableModel like this.

In Main class - I am defining JTable class and setting the above TableModel.


Problem is when notifyTable() method is called, i am not able to see table being updated.

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks suspect:



But on to the rest of your code... hopefully you'll get a helpful answer soon, but if not, you'll be smart to create a very small compilable runnable program that con be run unmodified on our boxes at home and would allow us to test you table model to its fullest.

Much luck!
 
Rob Camick
Ranch Hand
Posts: 2700
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cross posted: JTable - Insert Row and Refresh

In that posting the OP was asked to post a SSCCE, but instead has just duplicated the question.

Not only that the OP has a 0% accept rate in the other forum. I tried to give him the benefit of the doubt and made a couple of suggestions. I won't make that mistake again.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!