aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 19556
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editing in ABstractTableModel
 
Similar Threads
JTable(!!!)
JTable
JTable
Jtable CellEditor
JTable