summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/test/simplebrowser/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/test/simplebrowser/Main.java')
-rw-r--r--tdejava/koala/test/simplebrowser/Main.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/tdejava/koala/test/simplebrowser/Main.java b/tdejava/koala/test/simplebrowser/Main.java
new file mode 100644
index 00000000..467cd38c
--- /dev/null
+++ b/tdejava/koala/test/simplebrowser/Main.java
@@ -0,0 +1,40 @@
+import org.trinitydesktop.qt.*;
+import org.trinitydesktop.koala.*;
+
+/**
+ * Main class.
+ *
+ * Taken from KDE 2.0 Development book
+ *
+ * Rendering HTML Files
+ *
+ * A Simple Web Browser
+ *
+ *
+ * @see TDEApplication
+ *
+ * @author java translation Kenneth J. Pouncey, kjpou@hotmail.com
+ * @version 0.1
+ */
+
+public class Main {
+
+ public static void main(String[] cmdLineArgs) {
+
+ TDECmdLineArgs.init(cmdLineArgs, "ksimplebrowser", "KSimpleBrowser",
+ "A KDE 3 Development Example - KSimpleBrowser", "0.1");
+ TDEApplication app = new TDEApplication();
+ KSimpleBrowser kbrowser = new KSimpleBrowser("KSimpleBrowser");
+
+ kbrowser.show();
+
+ app.exec();
+ return;
+ }
+
+ static {
+ qtjava.initialize();
+ tdejava.initialize();
+ }
+
+}