|
|
@ -168,7 +168,7 @@ public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener, C |
|
|
|
selectionListener = createMouseSelectionListener(); |
|
|
|
selectionListener = createMouseSelectionListener(); |
|
|
|
tree.addMouseListener(selectionListener); |
|
|
|
tree.addMouseListener(selectionListener); |
|
|
|
this.treeExpansionAnimationListener = createExpansionAnimationListener(); |
|
|
|
this.treeExpansionAnimationListener = createExpansionAnimationListener(); |
|
|
|
tree.addTreeExpansionListener(treeExpansionAnimationListener); |
|
|
|
treeExpansionAnimationListener.install(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected DarkTreeExpansionAnimationListener createExpansionAnimationListener() { |
|
|
|
protected DarkTreeExpansionAnimationListener createExpansionAnimationListener() { |
|
|
@ -258,7 +258,7 @@ public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener, C |
|
|
|
tree.removeMouseListener(selectionListener); |
|
|
|
tree.removeMouseListener(selectionListener); |
|
|
|
selectionListener = null; |
|
|
|
selectionListener = null; |
|
|
|
tree.removePropertyChangeListener(this); |
|
|
|
tree.removePropertyChangeListener(this); |
|
|
|
tree.removeTreeExpansionListener(treeExpansionAnimationListener); |
|
|
|
treeExpansionAnimationListener.uninstall(); |
|
|
|
treeExpansionAnimationListener = null; |
|
|
|
treeExpansionAnimationListener = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|