title: How to position JavaFX shapes within any Pane?
body: <p>If I use a JavaFX element (for example, a <code>Circle</code>) directly in a <code>Scene</code> element it positions correctly. However, if I put it directly in a <code>Pane</code> (such as <code>BorderPane</code> below), then it isn't positioned right.</p>
  
  <p>Example 1 (correctly positions Circle at (10,10)):</p>
  
  <pre><code>Circle c = new Circle(10,10,15);
  Group g = new Group(c);
  Scene s = new Scene(g,800,600);
  stage.setScene(s);
  stage.show();
  </code></pre>
  
  <p>Example 2 (doesn't work):</p>
  
  <pre><code>Circle c = new Circle(10,10,15);
  Group g = new Group(c);
  BorderPane b = new BorderPane();
  b.setCenter(g);
  Scene s = new Scene(b,800,600);
  stage.setScene(s);
  stage.show();
  </code></pre>
  
  <p>Any ideas?</p>