Examples of prefWidth()


Examples of javafx.scene.control.Button.prefWidth()

                    // Find out the longest button...
                    double widest = 50;
                    for (int i = 0; i < buttons.size(); i++) {
                        Button btn = buttons.get(i);
                        if (btn == null) continue;
                        widest = Math.max(widest, btn.prefWidth(-1));
                    }

                    // ...and set all buttons to be this width
                    for (int i = 0; i < buttons.size(); i++) {
                        Button btn = buttons.get(i);
View Full Code Here

Examples of jfxtras.scene.layout.HBox.prefWidth()

        javafx.scene.shape.Rectangle c = new javafx.scene.shape.Rectangle(30,30);
        //c.setStroke(Color.RED);
        lCircularPane.add(c);
      }
      lHBox.getChildren().add(lCircularPane);
      if (lHBox.prefWidth(-1) > 1500) {
        lHBox = new HBox(0);
        lVBox.getChildren().add(lHBox);
      }
    }
View Full Code Here

Examples of jfxtras.scene.layout.HBox.prefWidth()

      for (int i = 0; i < j; i++) {
        javafx.scene.shape.Rectangle c = new javafx.scene.shape.Rectangle(20,20);
        lCircularPane.add(c);
      }
      lHBox.getChildren().add(lCircularPane);
      if (lHBox.prefWidth(-1) > 1000) {
        lHBox = new HBox(0);
        lVBox.getChildren().add(lHBox);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.