if (selectedNode.getDepth() == 0) {
selectedValue = (String) selectedNode.getUserObject();
File testExists = new File(selectedValue);
if (testExists.exists() && testExists.isDirectory()) {
try {
FileTreeExplorer ftree = new FileTreeExplorer(selectedValue);
GlobalValues.currentFileExplorer = ftree;
JFrame treeFrame = new JFrame("Files under the directory "+selectedValue);
treeFrame.add(new JScrollPane(ftree.pathsTree));
treeFrame.setSize(600, 500);
treeFrame.setVisible(true);