Issue Details (XML | Word | Printable)

Key: GROOVY-2498
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Danno Ferrin
Reporter: Colin Bankier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Swingbuilder table content gets mixed up when columns are re-ordered by dragging.

Created: 13/Jan/08 03:51 PM   Updated: 08/Feb/08 01:26 AM   Resolved: 14/Jan/08 04:13 PM
Component/s: Swing
Affects Version/s: 1.5.1
Fix Version/s: 1.5.2, 1.6-rc-2

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Remaining Estimate - 0 minutes
Time Spent: 3 hours, 30 minutes
Time Spent - 3 hours, 30 minutes

Environment: All


 Description  « Hide

Swingbuilder table content gets mixed up when columns are re-ordered by dragging.

e.g.

when the simple example below is run and the columns are re-ordered by
dragging, the content of the columns gets mixed up. ie the 'nick' column
shows the full name and vice versa.

import groovy.swing.SwingBuilder

def data = [
[nick:'MrG', full:'Guillaume Laforge'],
[nick:'jez', full:'Jeremy Rayner' ],
[nick:'fraz', full:'Franck Rasolo' ],
[nick:'sormuras', full:'Christian Stein' ],
[nick:'blackdrag', full:'Jochen Theodorou' ],
[nick:'Mittie', full:'Dierk Koenig' ]
]

def swing = new SwingBuilder()
def frame = swing.frame(title:'Table Demo') {
scrollPane {
table {
tableModel(list:data) { propertyColumn(header:'Nickname', propertyName:'nick') propertyColumn(header:'Full Name', propertyName:'full') }
}
}
}
frame.pack()
frame.show()



Danno Ferrin added a comment - 14/Jan/08 04:13 PM

More issues with modelIndex, which was causing the initial column duplication bg.


Paul King added a comment - 08/Feb/08 01:26 AM

close off release 1.5.4