HELLO WORLD...
[nikiroo-utils.git] / demos / Demo1.java
index 6f4869ae6c8100644b0fac8ae6c9d45ae227acc6..62fce24c3022bb46560a067d4f56bba97319cd8d 100644 (file)
@@ -33,6 +33,7 @@
 
 import jexer.bits.*;
 import jexer.TApplication;
+import jexer.session.TTYSessionInfo;
 
 /**
  * The demo application itself.
@@ -41,12 +42,18 @@ class DemoApplication extends TApplication {
     /**
      * Public constructor
      */
-    public DemoApplication() {
+    public DemoApplication() throws Exception {
+       super(null, null);
+       /*
        try {
            ColorTheme theme = new ColorTheme();
+           TTYSessionInfo tty = new TTYSessionInfo();
+           System.out.println("width: " + tty.getWindowWidth());
+           System.out.println("height: " + tty.getWindowHeight());
        } catch (Exception e) {
            e.printStackTrace();
        }
+        */
     }
 }
 
@@ -60,8 +67,12 @@ public class Demo1 {
      * @param  args Command line arguments
      */
     public static void main(String [] args) {
-       DemoApplication app = new DemoApplication();
-       app.run();
+       try {
+           DemoApplication app = new DemoApplication();
+           app.run();
+       } catch (Exception e) {
+           e.printStackTrace();
+       }
     }
 
 }