title: JavaFX, extracting all children that are buttons from root.getChildren()
body: <p>I just start my journey with JavaFX and I'll try to make a simple calc.</p>
  
  <p>I have that code to make all my buttons: </p>
  
  <pre><code>Button one = new Button("1");
  Button two = new Button("2");
  Button three = new Button("3");
  Button four = new Button("4");
  Button five = new Button("5");
  Button six = new Button("6");
  Button seven = new Button("7");
  Button eight = new Button("8");
  Button nine = new Button("9");
  Button zero = new Button("0");
  Button dot = new Button(".");
  Button pow = new Button("^2");
  TextField equation = new TextField();
  Button equal = new Button("=");
  Button multiple = new Button("*");
  Button divide = new Button("/");
  Button takefrom = new Button("-");
  Button add = new Button("+");
  </code></pre>
  
  <p>In the start method ill add them all to the boxes and then to the root. My main class implements EvendHandler. Now i want apply .onAction(this), to each button. </p>
  
  <p><strong>There is a way to extract only buttons from root node?</strong><br>
  I tried getChildren() and then for each but I can't get it to work.</p>
  
  <p><strong>Is there a good habit to make a arraylist for my buttons only and then make a loop that can do it?</strong></p>
  
  <p><strong>Or there is another way?</strong></p>
  
  <p>All code can be found at: 
  <a href="http://pastebin.com/RBzbn8bT" rel="nofollow noreferrer">http://pastebin.com/RBzbn8bT</a></p>