title: JavaFx @FXML Pagination injected to my controller class can't be modified
body: <p>I have designed my fxml using scene builder. Pagination comes with 10 pages as default and in page number buttons. I want to change those default stuffs according to my scenario.</p>
  
  <blockquote>
    <p>Here is what I have done in my controller:</p>
  </blockquote>
  
  <pre><code>  @FXML
      private Pagination pagination;
      ...
  
  
      /**
       * Initializes the controller class.
       */
      @Override
      public void initialize(URL url, ResourceBundle rb) {
          pagination = new Pagination(7, 0);
          pagination.setPageFactory((Integer pageIndex)-&gt;createUserInfo(pageIndex));
          pagination.getStyleClass().add(Pagination.STYLE_CLASS_BULLET);
  
      }
      ...
  
  private VBox createUserInfo(int pageIndex) {
      VBox box = new VBox();
      ImageView iv = new ImageView(images[pageIndex]);
      box.setAlignment(Pos.CENTER);
      Label desc = new Label("PAGE Number");
      box.getChildren().addAll(iv, desc);
      return box;
  }
  </code></pre>
  
  <blockquote>
    <p>Here is my FXML :</p>
  </blockquote>
  
  <pre><code>&lt;StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="538.0" prefWidth="747.0" style="-fx-background-color: #e8eaf6;" stylesheets="@../styles/inventory_fxml.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.inventory.controller.UserMange_fxmlController"&gt;
     &lt;children&gt;
        &lt;Group nodeOrientation="LEFT_TO_RIGHT"&gt;
           &lt;children&gt;
              &lt;VBox fx:id="vbox" prefHeight="483.0" prefWidth="685.0"&gt;
                 &lt;children&gt;
                    &lt;Pagination fx:id="pagination" prefHeight="352.0" prefWidth="685.0" stylesheets="@../styles/inventory_fxml.css" /&gt;
  
                   ....
  </code></pre>
  
  <p>But Still I get default configurations as I run the app. Is there anything wrong with my code ?? Thanks in advance....</p>