package org.mystic.kagan;

import javafx.fxml.FXML;
import javafx.scene.Group;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;


public class Controller {

    private static final String TRAINING_SESSION_PATH = "/compare/training-session";
    @FXML
    Group rootGroup;
    @FXML
    Button startTestButton;
    @FXML
    TextArea instructionText;

    @FXML
    private void closeWindow() {
        System.out.println(rootGroup.getChildren().size());
        System.exit(0);
    }

    @FXML
    private void startKaganTest() {
        startTestButton.setDisable(true);
        instructionText.setVisible(false);
        for (int i = 0; i <= 8; ++i) {

        }
        final String url = Controller.class.getResource(TRAINING_SESSION_PATH + "/1/0.jpg").toString();
        ImageView sample3 = new ImageView(new Image(url));
        sample3.setLayoutX(294);
        sample3.setLayoutY(25);
        rootGroup.getChildren().add(sample3);
    }
}

@@ -343,16 +343,94 @@
 sion%22;%0D%0A
+    private static final String MAIN_SESSION_PATH = %22/compare/main-session%22;%0D%0A
     @FXM
@@ -674,24 +674,181 @@
 ;%0D%0A    %7D%0D%0A%0D%0A
+    private final double%5B%5D x = %7B294, 14, 190, 366, 537, 14, 190, 366, 537%7D;%0D%0A    private final double%5B%5D y = %7B25, 185, 185, 185, 185, 367, 367, 367, 367%7D;%0D%0A%0D%0A
     @FXML%0D%0A 
@@ -1014,21 +1014,12 @@
  %7B%0D%0A
-%0D%0A
     
-    %7D%0D%0A
     
@@ -1098,17 +1098,25 @@
 H + %22/1/
-0
+%22 + i + %22
 .jpg%22).t
@@ -1123,24 +1123,28 @@
 oString();%0D%0A
+    
         Imag
@@ -1191,32 +1191,36 @@
 url));%0D%0A        
+    
 sample3.setLayou
@@ -1226,15 +1226,20 @@
 utX(
-294);%0D%0A
+x%5Bi%5D);%0D%0A    
     
@@ -1265,14 +1265,188 @@
 utY(
-25);%0D%0A
+y%5Bi%5D);%0D%0A            sample3.setFitWidth(200);%0D%0A            sample3.setFitHeight(150);%0D%0A            sample3.setPreserveRatio(true);%0D%0A            sample3.setPickOnBounds(true);%0D%0A    
     
@@ -1492,14 +1492,25 @@
 );%0D%0A
+        %7D%0D%0A
     %7D%0D%0A%7D
 %0D%0A
@@ -1507,10 +1507,8 @@
     %7D%0D%0A%7D
-%0D%0A

Add all images