title: JavaFX add a component to a list, dynamically changing it's content
body: <p>Using Fxml, I have my main screen with a ListView on it.</p>
  
  <p>I have then made a separate Fxml. This is called a card and displays financial stock information (Stock symbol and current price with 2 labels)</p>
  
  <p>How would I create multiple instances of the card so that they each have a different stock name and price, and the price can be updated?</p>
  
  <pre><code>public ListView searchList;
  public Button searchButton;
  
  @FXML
  public void handleSearchButton(ActionEvent event) throws IOException {
      loadFxml();
  }
  
  public void loadFxml () throws IOException {
      Pane newLoadedPane = FXMLLoader.load(getClass().getResource("card.fxml"));
      searchList.getItems().add(newLoadedPane); 
  }  
  </code></pre>
  
  <p>Currently that code will add a hard coded version of the card to the ListView. And I believe they are all the same, so if I were to update the text, they would all update.</p>