Hello, I have some dynamic tree. And now I need to implement some functionality, that happend every time, when simply click on node. (I mean only one click on node, which "makes it blue")
*EDIT2: * I use beanTreeView and package openide
How to implement listener of this action?
EDIT - added pseudocode
public class MyNode extends AbstractNode{ //openide package
private String name;
public MyNode(String nameOfNode){
super (new Children.LEAF);
name = nameOfNode;
}
....
....
}
public class IWantNameOfSelectedNode extends JPanel{
private JLabel jLnameOfNode;
public IWantNameOfSelectedNode(){
jLnameOfNode.setText("wiating for node selection");
}
Now, I need put name of selected node to jLabel, and change it every time when selection of node changes.