From: David ‘Bombe’ Roden Date: Fri, 4 Apr 2008 22:09:34 +0000 (+0000) Subject: start core X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d3c9f7d178c3e8e1260e002c14876c2fa4e73f86;p=jSite2.git start core git-svn-id: http://trooper/svn/projects/jSite/trunk@594 c3eda9e8-030b-0410-8277-bc7414b0a119 --- 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(); } }