package com.github.athi.athifx.gui.application;

import javafx.scene.control.Label;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

/**
 * Created by Athi
 */
class LoadingScreen extends AbstractScreen {

    static void show(Stage primaryStage) {
        AnchorPane root = prepareRoot(primaryStage);
        root.setPrefWidth(400);
        root.setPrefHeight(100);

        Label label = new Label("Loading application ...."); // A PROGRESSBAR ETC ETC
        root.getChildren().add(label);

        setAnchors(label, 2.0);
        primaryStage.show();
    }

}

@@ -225,46 +225,144 @@
     
-static void show(Stage primaryStage) %7B
+private static final Stage loadingStage = new Stage();%0A%0A    static void show() %7B%0A        loadingStage.initStyle(StageStyle.UNDECORATED);
 %0A   
@@ -396,23 +396,23 @@
 areRoot(
-primary
+loading
 Stage);%0A
@@ -441,9 +441,9 @@
 dth(
-4
+2
 00);
@@ -474,15 +474,67 @@
 ght(
-10
+2
 0);%0A%0A
+        ProgressBar progressBar = new ProgressBar();%0A
     
@@ -585,147 +585,467 @@
 tion
- .
 ...%22);
- // A PROGRESSBAR ETC ETC%0A        root.getChildren().add(label);%0A%0A        setAnchors(label, 2.0);%0A        primaryStage.show
+%0A        Button button = new Button(%22X%22);%0A        button.setOnAction(event -%3E Platform.exit());%0A        root.getChildren().addAll(progressBar, label, button);%0A%0A        setAnchors(progressBar, 2.0, 2.0, 2.0, 2.0);%0A        setAnchors(label, 2.0, 2.0, 102.0, 2.0);%0A        setAnchors(button, 196.0, 2.0, 2.0, 2.0);%0A%0A        loadingStage.show();%0A    %7D%0A%0A    static void close() %7B%0A        if (loadingStage.isShowing()) %7B%0A            loadingStage.close
 ();%0A    
 %7D%0A%0A%7D
@@ -1040,13 +1040,22 @@
 ();%0A    
+ 
+   %7D%0A    
 %7D
-%0A
 %0A%7D%0A

Update LoadingScreen.java