import com.sun.javafx.runtime.VersionInfo; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Pagination; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class PaginationTest extends Application { @Override public void start(Stage stage) throws Exception { VBox root = new VBox(20); Scene scene = new Scene(root, 400, 300); Button b1 = new Button("Text"); Pagination p1 = createControl(); Pagination p2 = createControl(); Pagination p3 = createControl(); b1.setStyle("-fx-effect: dropshadow( one-pass-box , green , 10, 0.5 , 10 , 40);"); p1.setStyle("-fx-effect: dropshadow( one-pass-box , green , 10, 0.5 , 10 , 30);"); p2.setStyle("-fx-shape:\"M 50 50 L 150 50 L 100 150 Z\";-fx-scale-shape: false; -fx-background-color: red;"); p3.setStyle("-fx-shape:\"M 50 50 L 150 50 L 100 150 Z\";-fx-position-shape: false; -fx-background-color: blue;"); root.getChildren().addAll(b1, p1, p2, p3); stage.setScene(scene); stage.show(); stage.setTitle(VersionInfo.getRuntimeVersion()); } /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } private Pagination createControl() { Pagination node = new Pagination(47); node.setMaxPageIndicatorCount(5); return node; } }