title: JavaFX: Populating TableView with data from different classes
body: <p>I am creating an application that have different classes such as <code>User</code>, <code>Product</code>, <code>Donor</code> and <code>Car</code>. Each of these classes stores relevant information to be shown in a JavaFX <code>TableView</code> – the <code>User</code> class having a <code>String name</code> and <code>int userID</code> for instance.</p>
  
  <p>I collect all of these in a class called <code>Data</code> that takes the above mentioned classes and stores them. I end up with an <code>ArrayList&lt;Data&gt;</code> where each index stores the four classes above.</p>
  
  <p>If I make an <code>ObservableArrayList</code> based on the <code>ArrayList&lt;Data&gt;</code> how do I retrieve the information from each class stored in the <code>Data</code> class? I am following <a href="http://docs.oracle.com/javafx/2/ui_controls/table-view.htm" rel="nofollow noreferrer">Oracle's own tutorial here</a>, but it only accounts for a case where you want to store a single class' information.</p>
  
  <p>Thanks!</p>