X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=demos%2FDemo1.java;h=62fce24c3022bb46560a067d4f56bba97319cd8d;hb=4328bb42c10743287dad5cf045f059ad109eb540;hp=94f0e9f22ce2ebfdc1cc63593adcb50075b372c7;hpb=7d4115a542abd938aa7fce607b062c6e393e5d67;p=fanfix.git diff --git a/demos/Demo1.java b/demos/Demo1.java index 94f0e9f..62fce24 100644 --- a/demos/Demo1.java +++ b/demos/Demo1.java @@ -30,12 +30,31 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA */ + +import jexer.bits.*; import jexer.TApplication; +import jexer.session.TTYSessionInfo; /** * The demo application itself. */ class DemoApplication extends TApplication { + /** + * Public constructor + */ + 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(); + } + */ + } } /** @@ -48,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(); + } } }