When I make a JavaFX window:
Scene scene = new Scene(pane, 600, 800);
primaryStage.setResizable(false);
primaryStage.setScene(scene);
primaryStage.show();
The resulting window is about 610 pixels wide.
If I use setWidth:
Scene scene = new Scene(pane, 600, 800);
primaryStage.setResizable(false);
primaryStage.setWidth(600);
primaryStage.setScene(scene);
primaryStage.show();
The window ends up being about 594 pixels wide.
Why does this happen, and how can I get my window to be the correct size?