• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable editing  RSS feed

 
sareen israni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All
I read some previous posts and I am trying to edit my JTable
I have a custom Model and a JTable
In my model i overide the methods
// override to make JTable editable
public boolean isCellEditable(int rowIndex, int column) {
return true;
}

AND
public void setValueAt(Object value, int rowIndex, int column) {

fireTableCellUpdated(rowIndex, column);

}
The problem is that if I edit a cell, say the data was a number 1234 .. if i double click and change it to say 4567 .. pressing Enter or selecting another cell still shows 1234 ( same data )shouldnt it show 4567 or how do i solve this problem ?
Any help is really appreciated !!
 
sareen israni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh i got it !!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!