Please help me...How to connect a jfilechooser and a jtree that takes the file system view of my pc..i need whenever a node is selected in jtree it automatically set as a current directory in the jfilechooser..

Thanks BestJewSinceJC for reply...
i am getting the node of jtree and set it using the jfilechooser.setcurrentdirectory(file f); where file f is the parth of my current directory which i get from jtree node..but my problem is that filechooser does not gets updated...when the new node is selected.