JavaFX [1.3] - TreeView
By Rakesh Menon on May 10, 2010
JavaFX 1.3 has TreeView as preview control. Here I'll demonstrate how to use it to implement a File Browser. For this, we need to implement a custom TreeView.cellFactory which will return a TreeCell instance (View) and provide an implementation for TreeItem (Model). TreeItem.createChildren is implemented so as to add more and more items, as and when user expands the nodes (Drive/Directory).
<script src="http://dl.javafx.com/1.3/dtfx.js"></script> <script src="http://javafxdemos.googlecode.com/hg/resource/FileBrowser/FileBrowser.js"></script>
For Applet mode, click on above image
Try all preview controls and give your valuable feedback and file RFEs/Bugs in JavaFX - JIRA