title: JavaFx:What if I want to do something after initialize(),before the scene show,how can I achieve this?
body: <p>I want to do something ,after the controller's initialize() method done,but before the scene show.Is there any method will be invoked before the scene show?I want to put some code into the method.</p>
  
  <pre><code>FXMLLoader loader = new FXMLLoader();
  loader.setLocation(getClass().getResource("sample.fxml"));
  AnchorPane pane = loader.load();
  Scene gameScene = new Scene(pane);
  //I load a secne above,the I will get the controller,set some properties,then,use the properties to read a file before the secene show.
  GameUIController controller = loader.getController();
  controller.setGameFileLoacation("game1.txt");//I set a property here.I want to use it to read game file,and load game,set some necessary UI.
  primaryStage.setScene(gameScene);//this tow statement will show the scene.
  primaryStage.show();
  </code></pre>
  
  <p>I can't put code into initialize() method,because it will invoked when the fxml file loads(when I not yet to get the controller).So,how can I do?</p>
  
  <p>Thanks verymuch !</p>