Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable showing data that isn't there...  RSS feed

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

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!