checkstyle sweep
[fanfix.git] / src / jexer / demos / DemoTreeViewWindow.java
index 4bd5a3885c14fd39fd36b0870c2cbaaf3c5ab766..6101d27dc637bd1d6a0137781d64df470b10d479 100644 (file)
  */
 package jexer.demos;
 
+import java.io.IOException;
+
 import jexer.*;
 import jexer.event.*;
-import jexer.menu.*;
 
 /**
  * This window demonstates the TTreeView widget.
@@ -48,13 +49,14 @@ public class DemoTreeViewWindow extends TWindow {
      * 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);
     }
 
     /**
@@ -63,7 +65,7 @@ public class DemoTreeViewWindow extends TWindow {
      * @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);