Hi.
I am building a JTree File Explorer embedded in an
Applet. The explorer should display a hierarchy like this(on Windows):
- Desktop
------ My Computer
------------- C:\
------------- D:\
------------- ..............
------ My Documents
------ My Network Places
------ .............................
etc.
The problem is that I can't access the needed "virtual" paths in the hierarchy with
Java methods. All I can access is something
like: THE DESKTOP PATH(as
"C:\Documents and Settings\User\Desktop"), the partitions' paths("C:\" etc) using File or FileSystemView.
What can I do to get the job done and display the tree AS ABOVE? Should I create "manually" the hierarchy above the system root
folders(I don't really like this solution)? Is there a much convenient and elegant way to do it(something like - just grab the
virtual Desktop(not the one that physically exist at "C:\Documents and Settings\User\Desktop") and and expand it using the JTree)?