title: Inserting data in a TableView Javafx
body: <p>I'm trying to insert data into a Javafx TableView, actually I did it, but it fills the row with the following String:</p>
  
  <p>IntegerProperty [value: 72] and etc...</p>
  
  <p>How can I show only the value fill in my rows??</p>
  
  <p>My TableView code:</p>
  
  <pre><code>@FXML TableView tableView = new TableView&lt;MetaDadosInfo&gt;();
  @FXML javafx.scene.control.TableColumn instituicaoCol;
  @FXML javafx.scene.control.TableColumn anoCol;
  @FXML javafx.scene.control.TableColumn tamanhoCol;
  @FXML javafx.scene.control.TableColumn tipoCol;
  @FXML javafx.scene.control.TableColumn nomeCol;
  
  final ObservableList&lt;MetaDadosInfo&gt; data = FXCollections.observableArrayList(
      new MetaDadosInfo(codigoInstituicao, ano, size, type, name));
  
  instituicaoCol.setCellValueFactory(
          new PropertyValueFactory&lt;MetaDadosInfo, String&gt;("codigoInstituicao"));
  
  anoCol.setCellValueFactory(
          new PropertyValueFactory&lt;MetaDadosInfo, String&gt;("ano"));
  
  tamanhoCol.setCellValueFactory(
          new PropertyValueFactory&lt;MetaDadosInfo, String&gt;("size"));
  
  tipoCol.setCellValueFactory(
          new PropertyValueFactory&lt;MetaDadosInfo, String&gt;("type"));
  
  nomeCol.setCellValueFactory(
          new PropertyValueFactory&lt;MetaDadosInfo, String&gt;("name"));
  
  tableView.setItems(data);
  </code></pre>
  
  <p>MetaDadosInfo class:</p>
  
  <pre><code>public class MetaDadosInfo {
      private SimpleIntegerProperty codigoInstituicao;
      private SimpleIntegerProperty ano;
      private SimpleLongProperty size;
      private SimpleStringProperty type;
      private SimpleStringProperty name;
  
      public MetaDadosInfo(int codigoInstituicao, int ano, long size, String type, String name) {
          this.codigoInstituicao = new SimpleIntegerProperty (codigoInstituicao);
          this.ano = new SimpleIntegerProperty (ano);
          this.size = new SimpleLongProperty (size);
          this.type = new SimpleStringProperty (type);
          this.name = new SimpleStringProperty (name);
      }
  
      public SimpleIntegerProperty getCodigoInstituicao() {
          return codigoInstituicao;
      }
  
      public void setCodigoInstituicao(SimpleIntegerProperty codigoInstituicao) {
          this.codigoInstituicao = codigoInstituicao;
      }
  
      public SimpleIntegerProperty getAno() {
          return ano;
      }
  
      public void setAno(SimpleIntegerProperty ano) {
          this.ano = ano;
      }
  
      public SimpleLongProperty getSize() {
          return size;
      }
  
      public void setSize(SimpleLongProperty size) {
          this.size = size;
      }
  
      public SimpleStringProperty getType() {
          return type;
      }
  
      public void setType(SimpleStringProperty type) {
          this.type = type;
      }
  
      public SimpleStringProperty getName() {
          return name;
      }
  
      public void setName(SimpleStringProperty name) {
          this.name = name;
      }
  
  }
  </code></pre>