TreePath path = treeTableArticles.getPathForRow(treeTableArticles
.getSelectedRow());
buttonSelect.setEnabled(false);
if (path != null) {
TreeNode selectedNode = (ArticleTypeTreeNode) path
.getLastPathComponent();
if (selectedNode.isLeaf()) {
buttonSelect.setEnabled(true);
}
}
path = treeTableChosen.getPathForRow(treeTableChosen.getSelectedRow());
buttonDeselect.setEnabled(false);
if (path != null) {
TreeNode selectedNode = (OrderLineTreeNode) path
.getLastPathComponent();
if (selectedNode.isLeaf()) {
buttonDeselect.setEnabled(true);
}
}
}