Package javafx.scene.layout

Examples of javafx.scene.layout.VBox


   */
  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    localTimePicker = new LocalTimePicker();
    box.getChildren().add(localTimePicker);

    // make sure there is enough room for the time sliders
    box.setPrefSize(300, 300);
    return box;
  }
View Full Code Here


   */
  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    localDatePicker = new LocalDatePicker();
    box.getChildren().add(localDatePicker);

    localDatePicker.setDisplayedLocalDate(LocalDate.of(2013, 1, 1));
    return box;
  }
View Full Code Here

   */
  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    calendarTimePicker = new CalendarTimePicker();
    box.getChildren().add(calendarTimePicker);

    // make sure there is enough room for the time sliders
    box.setPrefSize(300, 300);
    return box;
  }
View Full Code Here

  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    ObservableList<String> items = FXCollections.observableArrayList();
    for (int i = 0; i < 100; i++) {
      items.add("A list item numbered " + i);
    }
    listView = new ListView<String>();
    listView.setId("MyListView");
    listView.setItems(items);
    box.getChildren().add(listView);
   
    return box;
  }
View Full Code Here

  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    spinner = new ListSpinner<String>("a", "b", "c");
    box.getChildren().add(spinner);
    box.getChildren().add(new Button("focus helper"));
   

    // make sure that the listspinner fits with arrows in both directions
    box.setPrefSize(100, 100);
   
    return box;
  }
View Full Code Here

        iconSwitchText.setOnSelect(switchEvent -> System.out.println("Icon Switch Text switched on"));
        iconSwitchSymbol1.setOnSelect(switchEvent -> System.out.println("Icon Switch Symbol 1 switched on"));
    }

    @Override public void start(Stage stage) {
        VBox pane = new VBox();
        pane.setPadding(new Insets(10, 10, 10, 10));
        pane.setBackground(new Background(new BackgroundFill(Color.web("#34495e"), CornerRadii.EMPTY, Insets.EMPTY)));
        pane.setSpacing(20);
        pane.setAlignment(Pos.CENTER);
        pane.getChildren().addAll(onOffSwitch, iconSwitchSymbol, iconSwitchText, iconSwitchSymbol1);

        Scene scene = new Scene(pane, 100, 150);

        stage.setTitle("OnOffSwitch");
        stage.setScene(scene);
View Full Code Here

        HBox squareMatrixSegmentPane = new HBox();
        squareMatrixSegmentPane.setSpacing(0);
        squareMatrixSegmentPane.setPadding(new Insets(10, 10, 10, 10));
        squareMatrixSegmentPane.getChildren().setAll(seg7, seg8, seg9, seg10, seg11, seg12);

        VBox pane = new VBox();
        pane.setSpacing(10);
        pane.getChildren().addAll(matrixSegmentPane, squareMatrixSegmentPane);

        Scene scene = new Scene(pane, Color.DARKGRAY);

        stage.setTitle("Enzo MatrixSegment");
        stage.setScene(scene);
View Full Code Here

    }

    private void initGraphics() {
        final int NO_OF_LEDS = getSkinnable().getNoOfLeds();
        if (getSkinnable().getOrientation() == Orientation.VERTICAL) {
            bargraph = new VBox();
            ((VBox) bargraph).setSpacing(0);
            //bargraph.setPadding(new Insets(0, 0, 0, 0));
            for (int i = 0 ; i < NO_OF_LEDS ; i++) {
                bargraph.getChildren().add(i, ledList.get(NO_OF_LEDS - 1 - i));
            }
View Full Code Here

    private void initGraphics() {               
        hBox = new HBox();       
        hBox.getStyleClass().setAll("vu-meter");
        hBox.setSpacing(getSkinnable().getLedSpacing());       
       
        vBox = new VBox();
        vBox.getStyleClass().setAll("vu-meter");
        vBox.setSpacing(getSkinnable().getLedSpacing());       

        leds = FXCollections.observableArrayList();
        for (int i = 0 ; i < getSkinnable().getNoOfLeds() ; i++) {
View Full Code Here

        ToggleButton button = new ToggleButton("Push");
        button.setPrefSize(81, 43);
        button.getStylesheets().add(getClass().getResource("demo.css").toExternalForm());

        VBox pane = new VBox();
        pane.setSpacing(5);
        pane.getChildren().setAll(control, button);

        Scene scene = new Scene(pane);
        scene.setFill(Color.rgb(208,69,28));

        stage.setTitle("JavaFX Custom Control");
View Full Code Here

TOP

Related Classes of javafx.scene.layout.VBox

Copyright © 2018 www.massapicom. 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.