• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable cell display problem

 
chin josei
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a certain problem with JTable.All the columns in the table are editable and I have created my own Model class by extending DefaultTableModel.I have implemented the various methods like getValueAt(),setValueAt(0 bla..bla..
Now my problem is the value I enter in column0 disappears when I move to next cell.But if I enter in any other cells it is working fine.
Any idea why this is behaving like this
cheers
chin
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a problem with getValueAt(), like it were returning a null value after you edit cell 0. I'd check any array or subscript values there that might be causing the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!