X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoTreeViewWindow.java;h=0fc5dfe5747678f59adbac0604f32e12cf32687d;hb=0d47c5460c8e9d1198928308767a63ad35f46eb8;hp=4bd5a3885c14fd39fd36b0870c2cbaaf3c5ab766;hpb=d09767633248d79d1abc85f94d03b4102fae3f64;p=fanfix.git diff --git a/src/jexer/demos/DemoTreeViewWindow.java b/src/jexer/demos/DemoTreeViewWindow.java index 4bd5a38..0fc5dfe 100644 --- a/src/jexer/demos/DemoTreeViewWindow.java +++ b/src/jexer/demos/DemoTreeViewWindow.java @@ -30,9 +30,10 @@ */ package jexer.demos; +import java.io.IOException; + import jexer.*; import jexer.event.*; -import jexer.menu.*; /** * This window demonstates the TTreeView widget. @@ -49,12 +50,12 @@ public class DemoTreeViewWindow extends TWindow { * * @param parent the main application */ - public DemoTreeViewWindow(TApplication parent) { + public DemoTreeViewWindow(TApplication parent) throws IOException { super(parent, "Tree View", 0, 0, 44, 16, TWindow.RESIZABLE); // Load the treeview with "stuff" treeView = addTreeView(1, 1, 40, 12); - TDirectoryTreeItem root = new TDirectoryTreeItem(treeView, ".", true); + new TDirectoryTreeItem(treeView, ".", true); } /**