
|
If you were logged in you would be able to see more operations.
|
|
|
groovy
Created: 13/Jan/08 03:51 PM
Updated: 08/Feb/08 01:26 AM
|
|
| Component/s: |
Swing
|
| Affects Version/s: |
1.5.1
|
| Fix Version/s: |
1.6,
1.5.2
|
|
|
Time Tracking:
|
|
Original Estimate:
|
Not Specified
|
|
|
Remaining Estimate:
|
0 minutes
|
|
|
Time Spent:
|
3 hours, 30 minutes
|
|
|
|
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()
|
|
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() |
Show » |
|