title: Reloading a comboBox after changing it's values
body: <p>I am populating a comboBox with items taken from a sql database when initializing the thread.</p>
  
  <p>If anyone's interested:</p>
  
  <pre><code>public void initialize(URL arg0, ResourceBundle arg1)  {
      if(arr != null || arr.length &gt; 0) {
          for(int i = 0; i&lt;arr.length; i++) {
              cmBox.getItems().add(arr[i]);
          }
      }
  }
  </code></pre>
  
  <p>I have a part of my code that adds a new value to the sql table, and I want to re-populate the comboBox when that happens.</p>
  
  <p>if I do:</p>
  
  <pre><code>    cmBox.getItems().clear();
      arr = sqld.selectAll();
  
      if(arr != null || arr.length &gt; 0) {
          for(int i = 0; i&lt;arr.length; i++) {
              cmBox.getItems().add(arr[i]);
          }
      }
  </code></pre>
  
  <p>It works fine, but I can't see the new changes unless I close and re-open the window that displays the comboBox.</p>
  
  <p>No errors or anything, just looking for creative ways of re-loading a comboBox and have it actually show the updated values without manually closing and re-opening the window.</p>