Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable showing data that isn't there...

Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there..
I got some more JTable issues..
I got a JTable, when focussing a cell and then adding a new line (by using a keyshortcut, inserting an empty line in the data, and fireing up the datatablemodel) I get the new line (inserted in the place where I want it) but the cell value that I selected before, is copied to this new cell...
I checked the data and the row IS empty (getValueAt gives an empty value)
If I defocus that cell, setValueAt of the tablemodel is called..
When adding a new row without having the focus on a cell works just fine...
Is this magic? I don't want it!
If you have some spare time, I have some more JTable questions waiting in

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic