diff options
Diffstat (limited to 'src/uk/org/ury/frontend/testrig')
-rw-r--r-- | src/uk/org/ury/frontend/testrig/ApplicationLauncher.java | 27 | ||||
-rw-r--r-- | src/uk/org/ury/frontend/testrig/Launcher.java | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/src/uk/org/ury/frontend/testrig/ApplicationLauncher.java b/src/uk/org/ury/frontend/testrig/ApplicationLauncher.java new file mode 100644 index 0000000..4a194ac --- /dev/null +++ b/src/uk/org/ury/frontend/testrig/ApplicationLauncher.java @@ -0,0 +1,27 @@ +/** + * + */ +package uk.org.ury.frontend.testrig; + +import uk.org.ury.frontend.FrontendFrame; + +/** + * An application-based entry point into the frontend. + * + * If provided with no arguments, this will launch the main menu. + * + * @author Matt Windsor + */ +public class ApplicationLauncher implements Launcher { + /** + * Main method. + * + * @param args + * The command-line arguments to the program. These will + * currently be ignored. + */ + public static void main(String[] args) { + FrontendFrame fr = new FrontendFrame(DEFAULT_MODULE_NAME); + fr.setupUI(); + } +} diff --git a/src/uk/org/ury/frontend/testrig/Launcher.java b/src/uk/org/ury/frontend/testrig/Launcher.java new file mode 100644 index 0000000..8e92831 --- /dev/null +++ b/src/uk/org/ury/frontend/testrig/Launcher.java @@ -0,0 +1,17 @@ +/** + * + */ +package uk.org.ury.frontend.testrig; + + +/** + * Interface for entry points into the frontend. + * + * @author Matt Windsor + */ + + +public interface Launcher +{ + public String DEFAULT_MODULE_NAME = "menu.DemoMenu"; +} |