One of the constructors for the Scene object accepts two double values, a width and height for the window. If you are using FXML the line should look something like this:
scene = new Scene(loadFXML("primary"), 640, 480);
the 640 and 480 correspond to a default size of 640x480