May 10, 2010 14 Comments
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).
For Applet mode, click on above image
Try all preview controls and give your valuable feedback and file RFEs/Bugs in JavaFX – JIRA