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

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