JTable. make it read what's in the box
Hi. I ran across an annoying problem I had before and still I can't figure it out...
I am using a JTable, where the user writes stuff into.
Then there is a button below it, he clicks and then the calculation happens.
However, the last cell changed is not read correctly, first I have to switch the highlighted cell, only then will the button-triggered calculations (table.getValueAt(x, y), to be precise) read the last change correctly.
Am I just to stupid or is there no way to get the value in the cell without the user switching to another first?