File Explorer Image:
I was making a file explorer in Java and in the given image I manage to generate the output a JTree
on the left side, which expands and collapses, and a JTable
on the right side.
But as we experience in the Windows Explorer, if we click any folder in the table it expands and shows its contents. In my file explorer, how can I implement it--> If I click the row and if it is a directory/folder then it would expand and shows its contents?