title: JavaFX how to preserve the state of a tableview
body: <p>I am working on a <code>JAVAFX</code> application. In my application, after clicking a button, it opens one window which has a <code>TableView</code> in it with one <code>Apply</code> and <code>Save</code> button. When clicking on the <code>Apply</code> button, it will preserve the current state of the <code>TableView</code> (in case we add/remove the table rows and click apply and reopen the table the previously updated <code>TableView</code> should be shown). The <code>Save</code> button is to save the table records to a database. Suppose there are two rows (coming from the database) in the table and if I add a 3rd row and click <code>Apply</code> my <code>TableView</code> window will be closed. And If I reopen the table the third row is not present.</p>
  
  <p>How do I preserve that previously added third row, without inserting it into the database?</p>