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.
*
* 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();
}
}