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

table in SwingBuilder does not work properly and toolTipText seems not to work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-3
    • groovy-jdk
    • None
    • JDK6.0u2, groovy1.1-beta2

    Description

      run the following code

      import groovy.swing.SwingBuilder
      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' ]
      ]
      swing = new SwingBuilder()
      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()
      

      you will see the following result:

      Nickname       Full Name
      MrG	             MrG
      jez	                jez
      fraz	               fraz
      sormuras       sormuras
      blackdrag	blackdrag
      Mittie	              Mittie
      

      Nicknames are same with Full Names

      and
      button(toolTipText:"hello")
      the toolTipText of the button seems not to work

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: