title: Suming a specific TableView column/row in JavaFX
body: <p>I have done this in java where I sum the values of the price column/row. But I am wondering how to do this in JavaFX.  </p>
  
  <p>I want to sum everything in column 1 and display it in a <code>inputField</code>, I used this to do it in java but how do you do this in JavaFX?</p>
  
  <pre><code>tableview.getValueAt(i, 1).toString();
  </code></pre>
  
  <p>Here is what I'm trying to do:</p>
  
  <pre><code>int sum = 0;
  
  for (int i = 0; i &lt; tableview.getItems().size(); i++) {
      sum = sum + Integer.parseInt(tableview.getValueAt(i, 1).toString());
  }
  
  sumTextField.setText(String.valueOf(sum));
  </code></pre>