I am trying to use JTree to show a directory tree on my filesystem.
The problem is that some of the directories on the file system are empty. JTree, in its default behavior, assumes that a node that does not have children is a leaf node and changes its icon accordingly.
I want "directory" node to show as directories and only "file" nodes to show as leaf nodes.
How do I change JTree's default behavior ?