I'm just curious on how you open a file when you double click it's representation in a JTree.

JTree Example


Folder-
SubFolder-
Text File
Image File
...