title: JavaFX 2.0 + FXML - strange lookup behaviour
body: <p>I want to find a VBox node in a scene loaded with <code>FXMLoader</code> thanks to <code>Node#lookup()</code> but I get the following exception :</p>
  
  <p><code>java.lang.ClassCastException: com.sun.javafx.scene.control.skin.SplitPaneSkin$Content cannot be cast to javafx.scene.layout.VBox</code></p>
  
  <p><strong>The code :</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>public class Main extends Application {  
      public static void main(String[] args) {
          Application.launch(Main.class, (java.lang.String[]) null);
      }
      @Override
      public void start(Stage stage) throws Exception {
          AnchorPane page = (AnchorPane) FXMLLoader.load(Main.class.getResource("test.fxml"));
          Scene scene = new Scene(page);
          stage.setScene(scene);
          stage.show();
  
          VBox myvbox = (VBox) page.lookup("#myvbox");
          myvbox.getChildren().add(new Button("Hello world !!!"));
      }
  }
  </code></pre>
  
  <p><strong>The fxml file:</strong>  </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml" &gt;
    &lt;children&gt;
      &lt;SplitPane dividerPositions="0.5" focusTraversable="true" prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
        &lt;items&gt;
          &lt;AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0" /&gt;
          &lt;VBox fx:id="myvbox" prefHeight="398.0" prefWidth="421.0" /&gt;
        &lt;/items&gt;
      &lt;/SplitPane&gt;
    &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>I would like to know :<br>
  1. Why lookup method return a <code>SplitPaneSkin$Content</code> and not a <code>VBox</code> ?<br>
  2. How I can get the <code>VBox</code> in another manner ?</p>
  
  <p>Thanks in advance</p>