1

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:

  1. WatchServices to update the JTree when the file system is modified by another program or by the user
  2. FileVisitors to get contents of the nodes
  3. Asynchronous loading of tree node contents in case an operation takes a long time
mKorbel
  • 109,525
  • 20
  • 134
  • 319
Andy
  • 5,108
  • 3
  • 26
  • 37

0 Answers0