title: JavaFX issue when placing square at coordinates
body: <p>so i have the following code from a Rectangle</p>
  
  <pre><code>rect.setX(10);
  </code></pre>
  
  <p>and I also have</p>
  
  <pre><code>rect.setY(20);
  </code></pre>
  
  <p>but whenever i compile the application the rectangle is always moved to the middle of the application's frame.</p>
  
  <p>Imports used:</p>
  
  <pre class="lang-java prettyprint-override"><code>import javafx.application.Application;
  import javafx.application.Platform;
  import javafx.scene.shape.*;
  import javafx.scene.Scene;
  import javafx.geometry.Insets;
  import javafx.scene.input.MouseEvent;
  import javafx.event.EventHandler;
  import javafx.scene.input.KeyCombination;
  import javafx.scene.paint.Color;
  import javafx.scene.layout.*;
  import javafx.scene.layout.StackPane;
  import javafx.stage.Stage;
  </code></pre>