*/
package jexer.demos;
+import java.io.IOException;
+
import jexer.*;
import jexer.event.*;
-import jexer.menu.*;
/**
* This window demonstates the TTreeView widget.
* Public constructor.
*
* @param parent the main application
+ * @throws IOException if a java.io operation throws
*/
- public DemoTreeViewWindow(TApplication parent) {
+ public DemoTreeViewWindow(final 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);
}
/**
* @param resize resize event
*/
@Override
- public void onResize(TResizeEvent resize) {
+ public void onResize(final TResizeEvent resize) {
if (resize.getType() == TResizeEvent.Type.WIDGET) {
// Resize the text field
treeView.setWidth(resize.getWidth() - 4);