Thanks a lot.  That is a big help.

Gregg


Adrien FOURES wrote:

<x:tree id="tree1" .....

<x:treeSelectionListener type="dosmed.arbre.Tree1Action"/>  // build a class
which implement treeSelectionListener(catche event when you select a node)

<x:iconProvider type="dosmed.arbre.TreeIcon"/> // build a class which
implement iconProvider (update image of a node)

</x:tree>



public class Tree1Action implements TreeSelectionListener{

public Tree1Action(){
    super();
    this.init();
}

   public void init(){
    System.out.println("init.........");

// build your tree

   }


public void valueChanged(TreeSelectionEvent event){

   DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode)
event.getNewSelectionPath().getLastPathComponent(); // it's tha node which
is selected in interface.


}


i can not find any documentation too , so i have download the source code, and i try to understand it.

good luck to you.







Reply via email to