title: How can i lock a screen in a certain position (javafx)?
body: <p>i have to make a game for a school project and i was wondering if it's possible to lock a screen in a certain position on the screen. I have a settings button that opens a new stage and i want to make that scene immovable   is this possible? </p>
  
  <p>This is the code where i display the settings screen:</p>
  
  <pre><code>Public void buttonAction(){
          btnSettings.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
              @Override
              public void handle(ActionEvent event) {
                  GridPane settingsGrid = new GridPane();
                  Scene scene1 = new Scene(settingsGrid,375,600);
                  Stage settingsStage = new Stage();
                  settingsGrid.setHgap(10);
                  settingsGrid.setVgap(10);
                  //settingsGrid.setGridLinesVisible(true);
                  settingsStage.setTitle("Settings");
                  settingsStage.setResizable(false);
                  settingsStage.initStyle(StageStyle.UTILITY);
                  settingsStage.initModality(Modality.APPLICATION_MODAL);
                  settingsStage.setScene(scene1);
                  settingsStage.showAndWait();
              }
          });
      }
  </code></pre>
  
  <p>Thanks in advance!</p>