summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/application/Main.java
blob: 607c6d331bc5f380a956a5ec46e98411c90dac70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import org.trinitydesktop.qt.*;

public class Main extends TQObject {
	public static void main(String[] args) {
		TQApplication a = new TQApplication (args);
		ApplicationWindow mw = new ApplicationWindow();
		mw.setCaption("Document 1");
		mw.show();
		a.connect(a, TQ_SIGNAL("lastWindowClosed()"), a, TQ_SLOT("quit()"));
		a.exec();
		return;
	}
	
	static {
		qtjava.initialize();
	}
}