swingx
  1. swingx
  2. SWINGX-1439

Duplicate nodes in JXTreeTable appearing as "Empty" nodes

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: None
    • Labels:
      None

      Description

      This is about the rendering of a JXTreeTable.

      Whenever the same instance of an object is inserted more than once to the tree component of a JXTreeTable, an empty node is being painted for every subsequent insertion.

      We are not expecting those empty nodes.
      Could you please advise us how to remove those empty nodes?

      To reproduce the problem:
      1- Run the attached example (TestTreeTable.java)
      2- Click on the button "Add node D to A"
      3- Expand node "A" to be able to see the added node "D"
      4- Click on the button "Add node D to A" again
      5- You must be able to see the blank node under node "D"
      6- Repeat step 4 to see the problem again

      1. CustomTreeTableModel.java
        1 kB
        elisad
      2. InsertTreeTableModel.java
        0.9 kB
        elisad
      3. TestTreeTable.java
        2 kB
        elisad
      4. TestTreeTableExample_UPDATED.java
        2 kB
        elisad
      5. TestTreeTableExample.java
        2 kB
        elisad

        Activity

          People

          • Assignee:
            kleopatra
            Reporter:
            elisad
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: