title: How to make new windows appear at center of the screen in JavaFX?
body: <p>Am doing a project in JavaFX. Each window of my project has variable sizes. While running the project, the first window appears at the center of the screen. This is the screen shot. </p>
  
  <p><img src="https://i.stack.imgur.com/NBASZ.jpg" alt="enter image description here"></p>
  
  <p>But when I move to next page its size is different and so it appears like -</p>
  
  <p><img src="https://i.stack.imgur.com/wcbPr.jpg" alt="enter image description here"></p>
  
  <p>As you can see this window appeared to the right side of the screen. But I need to display every new window appear at the center of the screen. How can I do it ?</p>