title: The table cells are empty in my tableview. JavaFX + Scenebuilder
body: <p>I am trying to get the table cells to show the string when i create new rows. But all the rows are just empty. Do anyone know what i am doing wrong? 
  Here is the main class:
      package application;</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.fxml.FXMLLoader;
  import javafx.scene.Cursor;
  import javafx.scene.Parent;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  
  
  public class Main extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception{
  
              Parent root = FXMLLoader.load(getClass().getResource("/fxml/BasketCase_GUI_0.3.fxml"));
              Scene scene = new Scene(root,1110,740);
              scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
  
              primaryStage.setResizable(false);
              primaryStage.setScene(scene);
              primaryStage.setTitle("Basket Case_Beta");
              primaryStage.show();
              scene.setCursor(Cursor.DEFAULT);
  
  
          }
  
      public static void main(String[] args) throws Exception {
          launch(args);
  
      }
  }
  </code></pre>
  
  <p>This is normal and working so i dont think you need to worry about that one.</p>
  
  <p>Here is the controller class. Where I think the problem might be.</p>
  
  <pre><code>package application;
  
  import java.net.URL;
  import java.util.ResourceBundle;
  
  import javafx.beans.property.SimpleStringProperty;
  import javafx.collections.FXCollections;
  import javafx.collections.ObservableList;
  import javafx.event.ActionEvent;
  import javafx.fxml.FXML;
  import javafx.fxml.Initializable;
  import javafx.scene.control.TableColumn;
  import javafx.scene.control.TableView;
  import javafx.scene.control.cell.PropertyValueFactory;
  
  public class MainController implements Initializable {
  
      @FXML
      TableView&lt;Table&gt; TableID;
      @FXML
      TableColumn&lt;Table, Integer&gt; aPlayerID;
      @FXML
      TableColumn&lt;Table, String&gt; aLeague;
      @FXML
      TableColumn&lt;Table, String&gt; aName;
      private int aNumber = 1;
      SimpleStringProperty str = new SimpleStringProperty();
      public MainController() {
          str.set("Hello");
      }
  
      final ObservableList&lt;Table&gt; data = FXCollections.observableArrayList(
              new Table(aNumber++, "hehe", "hoho"),
              new Table(aNumber++, "hehe", "hoho"),
              new Table(aNumber++, "hehe", "hoho")
              );
  
      public void buttonClick(ActionEvent event) {
          data.add(new Table(aNumber++, "hehe", "hoho"));
          TableID.getColumns().addAll(aPlayerID, aLeague, aName);
      }
  
      @Override
      public void initialize(URL arg0, ResourceBundle arg1) {
  
          aPlayerID.setCellValueFactory( new PropertyValueFactory&lt;Table, Integer&gt;("bPlayerID"));
          aLeague.setCellValueFactory( new PropertyValueFactory&lt;Table, String&gt;("bLeague"));
          aName.setCellValueFactory( new PropertyValueFactory&lt;Table, String&gt;("bName"));
  
          TableID.setItems(data);
  
      }
  
  }
  </code></pre>
  
  <p>And here is also the table class thats needed for the tableviewer</p>
  
  <pre><code>package application;
  
  import javafx.beans.property.SimpleIntegerProperty;
  import javafx.beans.property.SimpleStringProperty;
  
  public class Table {
  
      private final SimpleIntegerProperty bPlayerID;
      private final SimpleStringProperty bLeague;
      private final SimpleStringProperty bName;
  
      public Table(int cPlayerID, String cLeague, String cName) {
          this.bPlayerID = new SimpleIntegerProperty(cPlayerID);
          this.bLeague = new SimpleStringProperty(cLeague);
          this.bName = new SimpleStringProperty(cName);
      }
  
      public int getbPlayerID() {
          return bPlayerID.get();
      }
      public void setbPlayerID(int v) {
          bPlayerID.set(v);
      }
      public String getbLeague() {
          return bLeague.get();
      }
      public void setbLeague(String v) {
          bLeague.set(v);
      }
      public String getbName() {
          return bName.get();
      }
      public void setbName(String v) {
          bName.set(v);
      }
  }
  </code></pre>
  
  <p>Do you guys know what could be wrong or maybe suggest how I could add just the tableviewer with code that still works with the rest of the fxml file from the scenebuilder?</p>