Results 1 to 1 of 1
Thread: JTable view/model sync problem
- 09-12-2008, 07:25 PM #1Member
- Join Date
- Sep 2008
- Rep Power
JTable view/model sync problem
I'm using SE 1.5 and have an issue with sorting columns. The table can sort the columns fine, but when sorted, the underlying model data is now out of sync with the data viewable to the user.
Thus when a user selects a row in the table view, the result that is returned in the code is the row from the model data which is not what the user selected!
How can I get the model data and view to correspond with each other?
There is a method for this "convertRowIndexToMode" in SE 1.6, but not in SE 1.5.
- By Melki in forum AWT / SwingReplies: 0Last Post: 08-29-2008, 01:16 PM
- By chopram in forum New To JavaReplies: 8Last Post: 06-07-2008, 10:18 PM
- By Abnoba12 in forum Advanced JavaReplies: 1Last Post: 05-15-2008, 01:32 PM