This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Editing in ABstractTableModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Editing in ABstractTableModel" Watch "Editing in ABstractTableModel" New topic
Author

Editing in ABstractTableModel

Haris Tasawar
Ranch Hand

Joined: Aug 19, 2011
Posts: 30
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

Joined: Oct 27, 2005
Posts: 19654
    
  18

Can you show us the code of your table model and the exception stack trace?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Editing in ABstractTableModel
 
Similar Threads
JTable
JTable(!!!)
Jtable CellEditor
JTable
JTable