title: JavaFX Stage width/height after sizeToScene call
body: <p>I'm currently writing an application that I want to have a minimum scene size of 800x600 pixels.
  At first attempt I simply used <code>stage.setMinWidth</code> and <code>stage.setMinHeight</code> but these values count for the whole window and not only for the scene, so only 7xx x 5xx of the scene are shown.
  So I searched the Stage javadoc and found <code>sizeToScene</code> which is exactly what i need, after call the stage size is bigger than 800x600 and the scene is fully shown with it's 800x600 pixels.</p>
  
  <p>The only problem now is that this method call doesn't save the stage width and height in the stage itself and therefore I can't set the minimum width and height to the current width and height calculated by <code>sizeToScene</code>.</p>
  
  <p><code>stage.getWidth</code> and <code>stage.getHeight</code> always return NaN.</p>
  
  <p>I could hardcode these values now that I got them (made a screenshot and checked in paint.net) but this wouldn't work with other OS/versions of Windows/decorators.</p>
  
  <p>I'm working on Windows 7, JavaFX 2.2, JDK 7_21.</p>
  
  <p>Has someone got an idea how to get the width and height after the method call?
  I hope you understand what my problem is otherwise just tell me. If you need code i can give it to you but i guess you won't need it.
  Thanks!</p>