title: Java FXML - TableView not displaying data
body: <p>My TableView is not displaying the data that it gets from the database. It displays the first column but no other. While debugging, i can see the ArrayList it receives is filled with the data, and the data i'm trying to display is a String, an int and a Timestamp.</p>
  
  <p>I have used this kind of code all over my program, but for some reason, it won't work on this particular screen.</p>
  
  <p>Here's the FXML:</p>
  
  <pre><code>    &lt;AnchorPane id="AnchorPane" prefHeight="331.0" prefWidth="340.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="desomer_michael_vivesbike.Controllers.RittenOverzichtController"&gt;
     &lt;children&gt;
        &lt;Label layoutX="14.0" layoutY="14.0" text="Ritten"&gt;
           &lt;font&gt;
              &lt;Font size="20.0" /&gt;
           &lt;/font&gt;
        &lt;/Label&gt;
        &lt;TableView fx:id="lijst_ritten" layoutX="14.0" layoutY="44.0" prefHeight="200.0" prefWidth="312.0"&gt;
          &lt;columns&gt;
              &lt;TableColumn prefWidth="75.0" text="Ritnr"&gt;
                  &lt;cellValueFactory&gt;
                      &lt;PropertyValueFactory property="id" /&gt;
                  &lt;/cellValueFactory&gt;
              &lt;/TableColumn&gt;
              &lt;TableColumn prefWidth="75.0" text="Lid"&gt;
                  &lt;cellValueFactory&gt;
                      &lt;PropertyValueFactory property="lidNaam" /&gt;
                  &lt;/cellValueFactory&gt;
              &lt;/TableColumn&gt;
              &lt;TableColumn prefWidth="75.0" text="Fiets"&gt;
                  &lt;cellValueFactory&gt;
                      &lt;PropertyValueFactory property="fietsNr" /&gt;
                  &lt;/cellValueFactory&gt;
              &lt;/TableColumn&gt;
              &lt;TableColumn prefWidth="85.0" text="Begindatum"&gt;
                  &lt;cellValueFactory&gt;
                      &lt;PropertyValueFactory property="startTijd" /&gt;
                  &lt;/cellValueFactory&gt;
              &lt;/TableColumn&gt;
          &lt;/columns&gt;
        &lt;/TableView&gt;
        &lt;Button layoutX="15.0" layoutY="253.0" mnemonicParsing="false" onAction="#toRitToevoegScherm" text="Toevoegen" /&gt;
        &lt;Button layoutX="99.0" layoutY="253.0" mnemonicParsing="false" text="Wijzigen" /&gt;
        &lt;Button layoutX="170.0" layoutY="253.0" mnemonicParsing="false" text="Verwijderen" /&gt;
        &lt;Button layoutX="257.0" layoutY="253.0" mnemonicParsing="false" text="Afsluiten" /&gt;
        &lt;Label layoutX="15.0" layoutY="289.0" textFill="RED"&gt;
           &lt;font&gt;
              &lt;Font size="15.0" /&gt;
           &lt;/font&gt;
        &lt;/Label&gt;
        &lt;Button layoutX="274.0" layoutY="287.0" mnemonicParsing="false" onAction="#toHoofdscherm" text="Terug" /&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>And here is the code that fills the TableView from the controller:</p>
  
  <pre><code>public void getAlleRitten(){
          try{
              RitTrans ritTrans = new RitTrans();
              ArrayList&lt;Rit&gt; lijst = ritTrans.getAlleRitten();
              lijst_ritten.setItems(FXCollections.observableArrayList(ritTrans.getAlleRitten()));
          } catch(Exception e){
              System.out.println("Fout in RittenOverzichtController.getAlleRitten(): " + e.getMessage());
          }
      }
  </code></pre>
  
  <p>The objects in the ArrayList that is received from getAlleRitten() are objects from the class Rit, here are its fields:</p>
  
  <pre><code>public class Rit {
  private int id;
  private Timestamp startTijd;
  private Timestamp eindTijd;
  private Fiets fiets;
  private Lid lid;
  private String lidNaam;
  private int fietsNr;
  private int prijs;
  private ArrayList&lt;String&gt; opmerkingen;
  
  public Rit(int id, Timestamp startTijd, Timestamp eindTijd) {
      this.id = id;
      this.startTijd = startTijd;
      this.eindTijd = eindTijd;
  }
  
  public Rit(){
  
  }
  
  public int getPrijs() {
      return prijs;
  }
  
  public void setPrijs(int prijs) {
      this.prijs = prijs;
  }
  
  public ArrayList&lt;String&gt; getOpmerkingen() {
      return opmerkingen;
  }
  
  public void setOpmerkingen(ArrayList&lt;String&gt; opmerkingen) {
      this.opmerkingen = opmerkingen;
  }
  
  public Lid getLid() {
      return lid;
  }
  
  public void setLid(Lid lid) {
      this.lid = lid;
      lidNaam = lid.getNaam() + " " + lid.getVoornaam();
  }
  
  public int getId() {
      return id;
  }
  
  public void setId(int id) {
      this.id = id;
  }
  
  public Timestamp getStartTijd() {
      return startTijd;
  }
  
  public void setStartTijd(Timestamp startTijd) {
      this.startTijd = startTijd;
  }
  
  public Timestamp getEindTijd() {
      return eindTijd;
  }
  
  public void setEindTijd(Timestamp eindTijd) {
      this.eindTijd = eindTijd;
  }
  
  public Fiets getFiets() {
      return fiets;
  }
  
  public void setFiets(Fiets fiets) {
      this.fiets = fiets;
      fietsNr = fiets.getRegisNr();
  }
  </code></pre>
  
  <p>}
  An example screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/2aQZJ.png" alt="enter image description here"></p>
  
  <p>As you can see, it fills in the first column just fine, but everything else not.
  Any help would be greatly appreciated.</p>
  
  <p>EDIT: i got the column "beginDatum" working, one of the letters was capitalized and i didn't see that, but the middle 2 columns still don't work.</p>