public void removeSelectionListener(SelectionListener lst) {
selectionSource.removeSelectionListener(lst);
}
private KongaTree createTree() {
KongaTree tree = new KongaTree(treeModelBuilder.build()) {
@Override
public Dimension getPreferredSize() {
return new Dimension(300, 300);
}
@Override
protected void onPopupTriggered() {
super.onPopupTriggered();
handleContextMenuRequest(getPopupX(), getPopupY());
}
};
tree.setCellRenderer(new TreeNodeDecorRenderer());
tree.setToggleClickCount(-1);
return tree;
}