I noticed in the following code
DefaultTreeModel treemodel = new DefaultTreeModel();
TreeNode root = treeModel.getRoot();
The problems is that root
value is "root" not the path to the file on the file system.
What I would expect is something like "C:\" or "D:\" depending on the tree.
Any one run into this problem?