From d3c9f7d178c3e8e1260e002c14876c2fa4e73f86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 4 Apr 2008 22:09:34 +0000 Subject: [PATCH] start core git-svn-id: http://trooper/svn/projects/jSite/trunk@594 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/main/Main.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java index 383aa0c..c465311 100644 --- a/src/net/pterodactylus/jsite/main/Main.java +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -19,6 +19,9 @@ package net.pterodactylus.jsite.main; +import net.pterodactylus.jsite.core.Core; +import net.pterodactylus.jsite.gui.SwingInterface; + /** * Main class that is called by the VM. * @@ -34,6 +37,20 @@ public class Main { * The command-line arguments */ public static void main(String[] args) { + new Main().start(); + } + + /** + * Starts the core and the default {@link SwingInterface}. + */ + private void start() { + Core core = new Core(); + + SwingInterface swingInterface = new SwingInterface(core); + core.addCoreListener(swingInterface); + swingInterface.start(); + + core.start(); } } -- 2.7.4