@@ -0,0 +1,2083 @@
+package views;%0D%0A%0D%0Aimport javafx.scene.Parent;%0D%0Aimport javafx.scene.Scene;%0D%0Aimport javafx.scene.control.Button;%0D%0Aimport javafx.scene.layout.Pane;%0D%0A%0D%0A/**%0D%0A * %0D%0A * @author Anthony Wong%0D%0A * %0D%0A * The MainMenuScene will be use for%0D%0A * the MainApp.java. This class extends%0D%0A * Scene. It is using design pattern Singleton.%0D%0A%0D%0A * TODO Beautify this Code.  %0D%0A */%0D%0Apublic final class MainMenuScene extends Scene %7B%0D%0A%09%0D%0A%09/**%0D%0A%09 * @author Anthony Wong%0D%0A%09 * %0D%0A%09 * The MainMenuPane will be use for the MainMenuScene.java.%0D%0A%09 * This class extends Pane and it is the design patter singleton. %0D%0A%09 */%0D%0A%09private static final class MainMenuPane extends Pane%7B%0D%0A%09%0D%0A%09%09/**%0D%0A%09%09 * The Instance of MainMenuPane%0D%0A%09%09 */%0D%0A%09%09private static MainMenuPane instanceOfMainMenuPane = null;%0D%0A%09%09%0D%0A%09%09/**%0D%0A%09%09 * MainMenuPane's Constructor%0D%0A%09%09 * %0D%0A%09%09 * This will generate all the buttons,%0D%0A%09%09 * textfields, and more. %0D%0A%09%09 */%0D%0A%09%09private MainMenuPane()%7B%0D%0A%09%09%09Button btn = new Button(%22Hello World%22);%0D%0A%09%09%09this.getChildren().addAll(btn);%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%09%09/**%0D%0A%09%09 * @return MainMenuPane's Object%0D%0A%09%09 */%0D%0A%09%09private static MainMenuPane getInstance()%7B%0D%0A%09%09%09return (instanceOfMainMenuPane ==  null) ? instanceOfMainMenuPane = new MainMenuPane() : instanceOfMainMenuPane;%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09/**%0D%0A%09 * The Height of the MainMenuScene.%0D%0A%09 */%0D%0A%09public static float HEIGHT = 70;%0D%0A%09%0D%0A%09/**%0D%0A%09 * The Width of the MainMenuScene.%0D%0A%09 */%0D%0A%09public static float WIDTH = 70;%0D%0A%09%0D%0A%09/**%0D%0A%09 * The Instance of MainMenuScene%0D%0A%09 */%0D%0A%09private static MainMenuScene instanceOfMainMenuScene = null;%0D%0A%09%0D%0A%09/**%0D%0A%09 * MainMenuScene' Constructor%0D%0A%09 * @param arg0 MainMenuPane%0D%0A%09 * @param arg1 width%0D%0A%09 * @param arg2 height%0D%0A%09 * %0D%0A%09 * This will generate the Scene and%0D%0A%09 * will call MainMenuPane Object%0D%0A%09 */%0D%0A%09private MainMenuScene(Parent arg0, double arg1, double arg2) %7B%0D%0A%09%09super(arg0, arg1, arg2);%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * @return MainMenuScene's Object.%0D%0A%09 */%0D%0A%09public static MainMenuScene getInstance()%7B%0D%0A%09%09return (MainMenuScene.instanceOfMainMenuScene == null) ? instanceOfMainMenuScene = new MainMenuScene(MainMenuPane.getInstance(), WIDTH, HEIGHT) : instanceOfMainMenuScene;%0D%0A%09%7D%0D%0A%7D%0D%0A

Add MainMenuScene class