title: Javafx How can I hide/unhide tabs on a tabpane
body: <p>I have tabpane and depending upon what is going on I'd like to make certain tabs invisible and others visible. The scene and tabs are all defined in FXML.</p>
  
  <p>I know I can use:</p>
  
  <pre><code>tabPane.getTabs().add(0, tab1);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>tabPane.getTabs().remove(tab1);
  </code></pre>
  
  <p>but all my tabs, including tab1 are defined in FXML. If I could get and save all the defined tabs and save them so I could re-add them later that would be OK.</p>