title: Fullscreen stage is not working properly in JavaFX 2.1?
body: <p>The first stage that I load it always open properly as fullscreen.</p>
  
  <pre><code>stage.setFullScreen(true);
  stage.setScene(login_scene); 
  </code></pre>
  
  <p>But when I change to another FXML the applications stays fullscreen (no top toolbar.. ), but the actual view content gets resized on the prefWidth/prefHeight of the root AnchorPane from FXML (I can see the desktop in my bottom right corner :|), and I want it to be dynamic to my screen resolution.</p>
  
  <p>Thanks.</p>
  
  <p>@Later Edit:</p>
  
  <p>So on the start method of my main Class I load a Scene (created from an FXML doc) and set it to the Stage (the start method param). I save this stage for later use. </p>
  
  <p>When I press a button with the same stage I save previously I change the scene to another FXML document</p>
  
  <p>@Screenshots:</p>
  
  <p><a href="http://tinypic.com/r/2079nqb/6" rel="nofollow">http://tinypic.com/r/2079nqb/6</a> - 1st scene works normally - code from start override method of the main class</p>
  
  <pre><code> @Override
    public void start(Stage stage) throws Exception {
      Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
  
      stage.setScene(new Scene(root));
      stage.setFullScreen(true);
      stage.show();
      currentStage = stage;
    }
  </code></pre>
  
  <p><a href="http://tinypic.com/r/szfmgz/6" rel="nofollow">http://tinypic.com/r/szfmgz/6</a> - after reloading the second scene - the code below from sample controller class</p>
  
  <pre><code> @FXML
    private void handleButtonAction(ActionEvent event) throws IOException {
      Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
      JavaFXApplication12.currentStage.setScene(new Scene(root));
    }
  </code></pre>