title: Minimize window in javafx2
body: <p>i have undecorate the window in javafx2. Now i want to minimize the window by means of the action. This is my code</p>
  
  <pre><code>    minIcon.setOnMouseClicked(new EventHandler&lt;MouseEvent&gt;() {
          public void handle(MouseEvent me) {
              primaryStage.toBack();
          }
      });
  </code></pre>
  
  <p>The window is go back when another one is open. otherwise its not. pls let me know how how to do this?</p>