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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: Swing
    • Labels:
      None
    • Environment:
      all
    • Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: