To make the scene occupy full screen, use the code:Rectangle2D screenBounds = Screen.getPrimary().getVisualBounds();Scene scene = new Scene(root, screenBounds.getWidth(), screenBounds.getHeight());/** To change this template, choose Tools | Templates...