TWindow compiles
[nikiroo-utils.git] / demos / Demo1.java
CommitLineData
7d4115a5
KL
1/**
2 * Jexer - Java Text User Interface - demonstration program
3 *
4 * Version: $Id$
5 *
6 * Author: Kevin Lamonte, <a href="mailto:kevin.lamonte@gmail.com">kevin.lamonte@gmail.com</a>
7 *
8 * License: LGPLv3 or later
9 *
10 * Copyright: This module is licensed under the GNU Lesser General
11 * Public License Version 3. Please see the file "COPYING" in this
12 * directory for more information about the GNU Lesser General Public
13 * License Version 3.
14 *
15 * Copyright (C) 2015 Kevin Lamonte
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public License
19 * as published by the Free Software Foundation; either version 3 of
20 * the License, or (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful, but
23 * WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * General Public License for more details.
26 *
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with this program; if not, see
29 * http://www.gnu.org/licenses/, or write to the Free Software
30 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
31 * 02110-1301 USA
32 */
2420f903
KL
33
34import jexer.bits.*;
7d4115a5 35import jexer.TApplication;
c8496dac 36import jexer.session.TTYSessionInfo;
7d4115a5
KL
37
38/**
39 * The demo application itself.
40 */
41class DemoApplication extends TApplication {
2420f903
KL
42 /**
43 * Public constructor
44 */
4328bb42
KL
45 public DemoApplication() throws Exception {
46 super(null, null);
47 /*
2420f903
KL
48 try {
49 ColorTheme theme = new ColorTheme();
c8496dac
KL
50 TTYSessionInfo tty = new TTYSessionInfo();
51 System.out.println("width: " + tty.getWindowWidth());
52 System.out.println("height: " + tty.getWindowHeight());
2420f903
KL
53 } catch (Exception e) {
54 e.printStackTrace();
55 }
4328bb42 56 */
2420f903 57 }
7d4115a5
KL
58}
59
60/**
61 * This class provides a simple demonstration of Jexer's capabilities.
62 */
63public class Demo1 {
64 /**
65 * Main entry point.
66 *
67 * @param args Command line arguments
68 */
69 public static void main(String [] args) {
4328bb42
KL
70 try {
71 DemoApplication app = new DemoApplication();
72 app.run();
73 } catch (Exception e) {
74 e.printStackTrace();
75 }
7d4115a5
KL
76 }
77
78}