stubs for TFileOpenBox, cleanup putStringXY
[fanfix.git] / src / jexer / demos / DemoMainWindow.java
index c2f77e80882b95d509636d5a2173950a4a960cd9..9a834645c5aa6c6176453fc6838dc452ec2b7d6f 100644 (file)
@@ -31,8 +31,6 @@
 package jexer.demos;
 
 import jexer.*;
-import jexer.event.*;
-import jexer.menu.*;
 
 /**
  * This is the main "demo" application window.  It makes use of the TTimer,
@@ -158,7 +156,11 @@ public class DemoMainWindow extends TWindow {
             addButton("Tree&View", 35, row,
                 new TAction() {
                     public void DO() {
-                        new DemoTreeViewWindow(getApplication());
+                        try {
+                            new DemoTreeViewWindow(getApplication());
+                        } catch (Exception e) {
+                            e.printStackTrace();
+                        }
                     }
                 }
             );