Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editing in ABstractTableModel

 
Haris Tasawar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have created a Jtable by using Hibernate....... Now i have to make the Jtable values to be edited at runtime.... Previously is used DefaultTableModel and vectors for Jtable data Editing and implemented the SetValueAt () method, but i am having trouble implementing this method using AbstractTableModel..... It always gives me an NullPointerException.

I need help in this. Could someone shed some light on this problem?

Thanks.


P.S : The data i get from hibernate is coming in ArrayList.

 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the code of your table model and the exception stack trace?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic