This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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: 20495
54
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