Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2498

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6-rc-2
    • Swing
    • None
    • All

    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()

      Attachments

        Activity

          People

            shemnon Daniel Ferrin
            colinbankier Colin Bankier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h