package net.pterodactylus.jkeytool.main;
import net.pterodactylus.jkeytool.core.Core;
-import net.pterodactylus.jkeytool.gui.MainFrame;
+import net.pterodactylus.jkeytool.gui.Interface;
+import net.pterodactylus.jkeytool.gui.swing.SwingInterface;
import de.ina.util.version.Version;
/**
return VERSION;
}
+ //
+ // VM ENTRY
+ //
+
/**
* JVM main entry method.
*
*/
public static void main(String[] arguments) {
Core core = new Core();
- MainFrame mainFrame = new MainFrame(core);
- core.addCoreListener(mainFrame);
- mainFrame.show();
+ Interface gui = getInterface();
+ core.addCoreListener(gui);
+ gui.start();
+ }
+
+ //
+ // PRIVATE METHODS
+ //
+
+ /**
+ * Returns the interface to use.
+ *
+ * @return The interface to use
+ */
+ private static Interface getInterface() {
+ return new SwingInterface();
}
}