Description
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)
}
}
}
frame.pack()
frame.show()