import javafx.application.*; import javafx.geometry.Pos; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.control.Pagination; import javafx.scene.layout.BorderPane; import javafx.scene.layout.Pane; import javafx.stage.Stage; public class BorderPanePaginationApp extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { BorderPane container = new BorderPane(); container.setStyle("-fx-border-color: darkgray;"); container.setPrefSize(180, 190); Pagination pagination = new Pagination(); pagination.setMaxPageIndicatorCount(3); container.setRight(pagination); BorderPane.setAlignment(pagination, Pos.BOTTOM_RIGHT); Scene scene = new Scene(new Pane(container), 600, 400); stage.setScene(scene); stage.setTitle(System.getProperty("javafx.userAgentStylesheetUrl")); stage.show(); } }