title: How does FXMLLoader load the FXML's controller?
body: <p>What happens when I call FXMLLoader#load() in JavaFX? </p>
  
  <p>Suppose the FXML controller extends a class that has a constructor. Will there be assurance that the constructor will be called? And if not, how will a new instance of the object be created? For example, in the code below, will the TextField() constructor be called?</p>
  
  <pre><code>import java.net.URL;
  import java.util.ResourceBundle;
  import javafx.fxml.Initializable;
  import javafx.scene.control.TextField;
  public class FXMLController extends TextField implements Initializable {
      @Override
      public void initialize(URL url, ResourceBundle rb) {
  
      }    
  }
  </code></pre>
  
  <p>I already tried searching this one out but there seems to be no documentation about it aside from "Loads an object hierarchy from a FXML document." from <a href="http://docs.oracle.com/javafx/2/api/javafx/fxml/FXMLLoader.html" rel="noreferrer">http://docs.oracle.com/javafx/2/api/javafx/fxml/FXMLLoader.html</a></p>
  
  <p>Your answers will be appreciated. Thanks a lot!</p>