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..

Recommended Answers

All 3 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.