groovy

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.5.2, 1.6-rc-2
  • Component/s: Swing
  • Labels:
    None
  • Environment:
    All
  • Number of attachments :
    0

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) { propertyColumn(header:'Nickname', propertyName:'nick') propertyColumn(header:'Full Name', propertyName:'full') }
}
}
}
frame.pack()
frame.show()

Activity

Hide
Danno Ferrin added a comment -

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

Show
Danno Ferrin added a comment - More issues with modelIndex, which was causing the initial column duplication bg.
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
3h 30m
Time Spent - 3 hours, 30 minutes