frame = new Frame((Component)wtkxSerializer.readObject(getClass().getResource("file_browser_test.wtkx")));
TreeView folderTreeView = (TreeView)wtkxSerializer.getObjectByID("folderTreeView");
String pathname = "/";
final Folder rootFolder = new Folder(pathname);
rootFolder.refresh();
folderTreeView.setTreeData(rootFolder);
folderTreeView.getTreeViewBranchListeners().add(new TreeViewBranchListener() {
public void branchExpanded(TreeView treeView, Path path) {
Folder folder = (Folder)Sequence.Tree.get(rootFolder, path);
folder.refresh();
}
public void branchCollapsed(TreeView treeView, Path path) {
// No-op
}