title: need clarity between stage/scene and screen
body: <p>The following elementary code works perfectly. It determines the list of available screens, and then identifies the largest one, and then sets the size of the stage equal to the dimensions of the largest monitor.</p>
  <pre><code>public class MaximizedStage extends Application {
  public static void main(String[] args) {
      Application.launch(args);
  }
  
  @Override
  public void start(Stage stage) {
      ObservableList&lt;Screen&gt; monitors = Screen.getScreens();
      //determine the larger monitor
      Rectangle2D bounds = monitors.get(0).getVisualBounds();     //get the bounds of the default monitor
      int preferred_mon = 0;
      var x = bounds.getMinX();
      var y = bounds.getMinY();
      var w = bounds.getWidth();
      var h = bounds.getHeight();
      System.out.println(&quot;Count of monitors : &quot;+monitors.size()+&quot; default monitor size : w: &quot;+w+&quot; h: &quot;+h);
      for (int mon = 1; mon &lt; monitors.size(); mon++) {           // for each of the other monitors
          Rectangle2D next_monitor_bounds = monitors.get(mon).getVisualBounds();  //get the size
          if ((next_monitor_bounds.getHeight() &gt; h) &amp;&amp; (next_monitor_bounds.getWidth() &gt; w)) {
              //larger monitor, update parameters
              preferred_mon = mon;
              x = next_monitor_bounds.getMinX();
              y = next_monitor_bounds.getMinY();
              w = next_monitor_bounds.getWidth();
              h = next_monitor_bounds.getHeight();
          }
      }
      System.out.println(&quot;Largest monitor : index: &quot;+preferred_mon+&quot; w: &quot;+w+&quot; h: &quot;+h);
  
      stage.setScene(new Scene(new Group()));
      stage.setTitle(&quot;Full screen&quot;);
  
      // Set the position and size of the stage equal to the position and
      // size of the screen
  
      stage.setX(x);
      stage.setY(y);
      stage.setWidth(w);
      stage.setHeight(h);
  
      // Show the stage       
      stage.show();
  }
  }
  </code></pre>
  <p>My question is: where in this code does the stage (or the Scene) know which is the final selection among the screens to display on? Am struggling to understand the linkage between stage/scene and the choice of the monitor. The final objective is to prepare multiple different stages, run each one on a different thread, and direct their output to a different monitor.</p>
  <p>Thanks for your attention.</p>