package br.com.mastersys.control; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.SplitPane; import javafx.scene.layout.HBox; import javafx.scene.paint.Color; import javafx.stage.Stage; public class TestSplit extends Application { public static void main(String[] args) { Application.launch(args); } @Override public void start(final Stage stage) throws Exception { HBox hbox = new HBox(20); hbox.setTranslateX(20); hbox.setTranslateY(20); SplitPane splitPane1 = new SplitPane(); splitPane1.setPrefSize(200, 200); final Button l = new Button("Left Button"); final Button r = new Button("Right Button"); splitPane1.getItems().addAll(l, r); hbox.getChildren().add(splitPane1); Scene scene = new Scene(new Group(hbox), 560, 240); scene.setFill(Color.GHOSTWHITE); stage.setScene(scene); stage.setTitle("SplitPane"); stage.show(); } }