title: How to load, and delete dynamically Nodes in javafx?
body: <p>I need to dynamically load list of button and add action listner to all of them basic on user decision. Next I have to delete this buttons and load instead of them other buttons. I tried to use this code,</p>
  
  <pre><code>public void clearRadioButtons()
  {
  
  
      for(int i =0; i&lt; radioButtons.size() -1;i++)
      {
          radioButtons.remove(i);
          group.getToggles().remove(i);
          vBox.getChildren().remove(radioButtons);
  
      }
      radioButtons.clear();
      group.getToggles().clear();
      System.out.println("Clear"+radioButtons.size());
  
  
  }
  </code></pre>
  
  <p>but these radiobuttons still are on my screen. I can't delete them. Does somebody know how to dynamically load, delete and load something instead of them?</p>