I've seen plenty of examples of JTrees
that display the file system using the standard Java File
API. Are there any example implementations of a JTree (maybe using a custom TreeModel
) that use the new NIO apis from Java 7? I'd love to see an example that demonstrates proper usage of:
WatchServices
to update the JTree when the file system is modified by another program or by the userFileVisitors
to get contents of the nodes- Asynchronous loading of tree node contents in case an operation takes a long time