
import javafx.application.Application; 
import javafx.geometry.Pos; 
import javafx.scene.Scene; 
import javafx.scene.control.Label; 
import javafx.scene.layout.*; 
import javafx.scene.paint.Color; 
import javafx.stage.Stage; 

public class SceneTest extends Application { 
    @Override 
    public void start(Stage primaryStage) throws Exception{ 
        Label root = new Label("JavaFX Stage: Minimum Size Test"); 
        root.setAlignment(Pos.CENTER); 
        root.setBackground(new Background(new BackgroundFill(Color.RED, null, null))); 
        primaryStage.setScene(new Scene(root)); 
        primaryStage.setMinWidth(1000); 
        primaryStage.setMinHeight(1000); 
        primaryStage.show(); 
    } 

    public static void main(String[] args) { 
        launch(args); 
    } 
} 
