import javafx.application.*; 
import javafx.geometry.*; 
import javafx.scene.*; 
import javafx.scene.control.*; 
import javafx.scene.layout.*; 
import javafx.stage.*; 

public class ControlLabelTest extends Application { 

    public static void main(String[] args) { 
        Application.launch(args); 
    } 

    @Override 
    public void start(Stage stage) { 
        final HBox box = new HBox(); 
        box.setAlignment(Pos.CENTER); 
        box.setPadding(new Insets(8)); 
        box.setSpacing(8); 

        for (int i = 0; i < 4; i++) 
            box.getChildren().add(new CheckBox("Check")); 
        stage.setScene(new Scene(box)); 
        
        if (getParameters().getUnnamed().contains("sizeToScene")) 
            stage.sizeToScene(); 
		stage.setTitle(System.getProperty("java.runtime.version"));
        stage.show(); 
    } 
} 