I'm currently using JTable for display information and MODIFY them, but when I tried to getValue()
from JTable after I dragged the header, I got value from previous changes (before I dragged it). How to make my JTable refresh/save any drag move? So I can implement the code in event such as mouseRelease()
on the JTable.
as you can see in the picture (already switch the header) that the value is '3', (it's suppose to be 'c' )
Asked
Active
Viewed 21 times
0

Pendula
- 688
- 6
- 17

Iqbal Tawakkal
- 445
- 4
- 11
-
Possible duplicate of any of [these](http://stackoverflow.com/search?tab=votes&q=%5bjtable%5d%20When%20using%20a%20sorter%2c%20always%20remember%20to%20translate%20cell%20coordinates.): "always remember to translate cell coordinates." – trashgod Jan 11 '16 at 16:39
-
[`JTable#convertRowIndexToModel`](https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#convertRowIndexToModel(int)) and [`JTable#convertColumnIndexToModel`](https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#convertColumnIndexToModel(int)) – MadProgrammer Jan 11 '16 at 20:03
-
@MadProgrammer Thanks man, it works. – Iqbal Tawakkal Jan 12 '16 at 10:50
-
1@trashgod Trust me, i already searched. I thought my problem is different. Mybad. – Iqbal Tawakkal Jan 12 '16 at 10:52