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

Hard check for JTable in ColumnModelFactory.onNodeCompleted prevented columnModel() to be used in a noparent()-block

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0-beta-1
    • Swing
    • None
    • all
    • Patch

    Description

      If you want to use columnModel() outside of a table-node, e.g. to reuse it in multiple tables or to add to the table via code, it should be able to use it in a noparent-block.
      This had been prevented because 'parent.columnModel = node' throws a MPE if the parent has no columnModel property.
      This had been fixed by only setting the property when the parent is a JTable.

      See pull request for path: https://github.com/groovy/groovy-core/pull/149

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            saschaklein Alexander Klein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: