javaclass

Changeset

127:c3005435095e
2005-01-14 Paul Boddie raw files shortlog changelog graph Added a main method, although it does not currently work - there may be an issue with presenting Unicode objects to QWidget constructors, amongst other things.
examples/Qt/WidgetTest.java (file)
     1.1 --- a/examples/Qt/WidgetTest.java	Fri Jan 14 00:49:51 2005 +0100
     1.2 +++ b/examples/Qt/WidgetTest.java	Fri Jan 14 01:33:25 2005 +0100
     1.3 @@ -2,4 +2,12 @@
     1.4      public WidgetTest(qtjava.QWidget parent, String name) {
     1.5          super(parent, name);
     1.6      }
     1.7 +
     1.8 +    public static void main(String[] args) {
     1.9 +        String[] empty = new String[0];
    1.10 +        qtjava.QApplication app = new qtjava.QApplication(empty);
    1.11 +        WidgetTest wt = new WidgetTest(null, "WidgetTest");
    1.12 +        wt.show();
    1.13 +        app.exec_loop();
    1.14 +    }
    1.15  }