title: JavaFX GUI window not showing up
body: <p>So I have this application (not fully functional yet) I made using JavaFX in Eclipse. The problem is that when I press play, nothing show up. No GUI window. I built it using Scene Builder by the way. When i run though, no error pops up. Here's my code : </p>
  
  <p>Main.Java</p>
  
  <pre><code>package application;
  
  import javafx.application.Application;
  import javafx.collections.FXCollections;
  import javafx.collections.ObservableList;
  import javafx.fxml.FXMLLoader;
  import javafx.stage.Stage;
  import javafx.scene.Scene;
  import javafx.scene.layout.AnchorPane;
  
  
  public class Main extends Application {
      private Stage primaryStage;
      @Override
      public void start(Stage primaryStage) {
          this.primaryStage = primaryStage;
          mainWindow();
      }
  
      public void mainWindow() {
          try{
              FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml"));
              AnchorPane pane = loader.load();
              Scene scene = new Scene(pane);
  
              MainWindowController controller = loader.getController();
              controller.setMain(this);
  
              primaryStage.setScene(scene);
              primaryStage.setResizable(false);
              primaryStage.show();
  
          }catch(Exception e){
              e.printStackTrace();
          }
      }
  
      private ObservableList&lt;Person&gt; personData = FXCollections.observableArrayList();
      public ObservableList&lt;Person&gt; getPersonData() { return personData; }
  
      public Main(){
          personData.add(new Person("Dr", "Frankenstein", "1234345", "London", "666666"));
          personData.add(new Person("Steve", "Jobs", "112233", "Silicon Valley", "12345"));
      }
  
      public static void main(String[] args){
  
      }
  }
  </code></pre>
  
  <p>MainWindowController.java</p>
  
  <pre><code>package application;
  
  import javafx.fxml.FXML;
  import javafx.scene.control.TableColumn;
  import javafx.scene.control.TableView;
  import javafx.scene.control.cell.PropertyValueFactory;
  
  public class MainWindowController {
  
      @FXML TableView&lt;Person&gt; tableView;
      @FXML TableColumn&lt;Person, String&gt; firstNameColumn;
      @FXML TableColumn&lt;Person, String&gt; lastNameColumn;
  
      private Main main;
  
      public void initialize(){
          firstNameColumn.setCellValueFactory(new PropertyValueFactory&lt;Person, String&gt;("FirstName"));
          lastNameColumn.setCellValueFactory(new PropertyValueFactory&lt;Person, String&gt;("LastName"));
      }
  
      public void setMain(Main main){
          this.main = main;
          tableView.setItems(main.getPersonData());
      }
  
      @FXML
      public void handleNew(){
  
      }
  
      @FXML
      public void handleEdit(){
  
      }
  
      @FXML
      public void handleDelete(){
  
      }
  
  }
  </code></pre>
  
  <p>MainWindowView.fxml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import javafx.scene.text.*?&gt;
  &lt;?import javafx.scene.control.*?&gt;
  &lt;?import java.lang.*?&gt;
  &lt;?import javafx.scene.layout.*?&gt;
  &lt;?import javafx.scene.layout.AnchorPane?&gt;
  
  
  &lt;AnchorPane prefHeight="500.0" prefWidth="800.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8" fx:controller="application.MainWindowController"&gt;
     &lt;children&gt;
        &lt;TableView fx:id="tabelView" layoutX="14.0" layoutY="14.0" prefHeight="200.0" prefWidth="350.0" AnchorPane.bottomAnchor="25.0" AnchorPane.leftAnchor="20.0" AnchorPane.topAnchor="25.0"&gt;
          &lt;columns&gt;
            &lt;TableColumn fx:id="firstNameColomn" prefWidth="75.0" text="First Name" /&gt;
            &lt;TableColumn fx:id="lastNameColumn" prefWidth="75.0" text="Last Name" /&gt;
          &lt;/columns&gt;
           &lt;columnResizePolicy&gt;
              &lt;TableView fx:constant="CONSTRAINED_RESIZE_POLICY" /&gt;
           &lt;/columnResizePolicy&gt;
        &lt;/TableView&gt;
        &lt;GridPane layoutX="418.0" layoutY="61.0"&gt;
          &lt;columnConstraints&gt;
            &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
            &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt;
          &lt;/columnConstraints&gt;
          &lt;rowConstraints&gt;
              &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
              &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt;
            &lt;RowConstraints minHeight="10.0" prefHeight="45.0" vgrow="SOMETIMES" /&gt;
            &lt;RowConstraints minHeight="10.0" prefHeight="45.0" vgrow="SOMETIMES" /&gt;
            &lt;RowConstraints minHeight="10.0" prefHeight="45.0" vgrow="SOMETIMES" /&gt;
              &lt;RowConstraints minHeight="10.0" prefHeight="45.0" vgrow="SOMETIMES" /&gt;
              &lt;RowConstraints minHeight="10.0" prefHeight="45.0" vgrow="SOMETIMES" /&gt;
          &lt;/rowConstraints&gt;
           &lt;children&gt;
              &lt;Label text="Last Name" GridPane.rowIndex="3" /&gt;
              &lt;Label text="Details"&gt;
                 &lt;font&gt;
                    &lt;Font name="System Bold" size="18.0" /&gt;
                 &lt;/font&gt;
              &lt;/Label&gt;
              &lt;Label text="First Name" GridPane.rowIndex="2" /&gt;
              &lt;Label text="Phone" GridPane.rowIndex="4" /&gt;
              &lt;Label text="City" GridPane.rowIndex="5" /&gt;
              &lt;Label text="Postcode" GridPane.rowIndex="6" /&gt;
              &lt;Label fx:id="firstNameLabel" GridPane.columnIndex="1" GridPane.rowIndex="2" /&gt;
              &lt;Label fx:id="lastNameLabel" GridPane.columnIndex="1" GridPane.rowIndex="3" /&gt;
              &lt;Label fx:id="phoneLabel" GridPane.columnIndex="1" GridPane.rowIndex="4" /&gt;
              &lt;Label fx:id="cityLabel" GridPane.columnIndex="1" GridPane.rowIndex="5" /&gt;
              &lt;Label fx:id="postcodeLabel" GridPane.columnIndex="1" GridPane.rowIndex="6" /&gt;
           &lt;/children&gt;
        &lt;/GridPane&gt;
        &lt;HBox layoutX="418.0" layoutY="418.0" spacing="20.0"&gt;
           &lt;children&gt;
              &lt;Button layoutX="418.0" layoutY="418.0" mnemonicParsing="false" text="New" /&gt;
              &lt;Button layoutX="518.0" layoutY="418.0" mnemonicParsing="false" text="Edit" /&gt;
              &lt;Button layoutX="618.0" layoutY="418.0" mnemonicParsing="false" text="Delete" /&gt;
           &lt;/children&gt;
        &lt;/HBox&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>