Package javafx.scene.layout

Examples of javafx.scene.layout.GridPane.addRow()


            disabledField.setNumber(new BigDecimal(Math.random() * 1000));
            promptText.setNumber(null);
            calendarTextField.setCalendar(Calendar.getInstance());
            decimalFormat.requestFocus();
        });
        root.addRow(rowIndex++, new Label(), button);
        BigDecimalLabel bigDecimalLabel = new BigDecimalLabel();
        bigDecimalLabel.numberProperty().bind(defaultSpinner.numberProperty());
        bigDecimalLabel.formatProperty().bind(numberFormatProperty);
        root.addRow(rowIndex++, new Label("BigDecimalLabel"), bigDecimalLabel);

View Full Code Here


        });
        root.addRow(rowIndex++, new Label(), button);
        BigDecimalLabel bigDecimalLabel = new BigDecimalLabel();
        bigDecimalLabel.numberProperty().bind(defaultSpinner.numberProperty());
        bigDecimalLabel.formatProperty().bind(numberFormatProperty);
        root.addRow(rowIndex++, new Label("BigDecimalLabel"), bigDecimalLabel);

        CalendarLabel calendarLabel = new CalendarLabel();
        calendarLabel.valueProperty().bind(calendarTextField.calendarProperty());
        calendarLabel.formatProperty().bind(dateFormatProperty);
        root.addRow(rowIndex++, new Label("CalendarLabel"), calendarLabel);
View Full Code Here

        root.addRow(rowIndex++, new Label("BigDecimalLabel"), bigDecimalLabel);

        CalendarLabel calendarLabel = new CalendarLabel();
        calendarLabel.valueProperty().bind(calendarTextField.calendarProperty());
        calendarLabel.formatProperty().bind(dateFormatProperty);
        root.addRow(rowIndex++, new Label("CalendarLabel"), calendarLabel);
//        defaultSpinner.requestFocus();
//        calendarTextField.requestFocus();
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
View Full Code Here

    samples.put(2, configureSample(sample2));

    GridPane gp = new GridPane();
    gp.setVgap(8);
    gp.setHgap(10);
    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));
View Full Code Here

    GridPane gp = new GridPane();
    gp.setVgap(8);
    gp.setHgap(10);
    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));
View Full Code Here

    GridPane gp = new GridPane();
    gp.setVgap(8);
    gp.setHgap(10);
    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));

    HBox formButtonBox = new HBox();
View Full Code Here

    gp.setVgap(8);
    gp.setHgap(10);
    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));

    HBox formButtonBox = new HBox();
    formButtonBox.setSpacing(10);
View Full Code Here

    gp.setHgap(10);
    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));

    HBox formButtonBox = new HBox();
    formButtonBox.setSpacing(10);
    formButtonBox.setPadding(new Insets(15, 0, 0, 0));
View Full Code Here

    gp.addRow(0, new Label("First Name"), new Label(":"), new TextField());
    gp.addRow(1, new Label("Last Name"), new Label(":"), new TextField());
    gp.addRow(2, new Label("Gender"), new Label(":"), new RadioButton("Male"));
    gp.addRow(3, new Label(""), new Label(""), new RadioButton("Female"));
    gp.addRow(4, new Label("Subjects"), new Label(":"), new CheckBox("Maths"), new CheckBox("Social"));
    gp.addRow(5, new Label(""), new Label(""), new CheckBox("Science"), new CheckBox("Biology"));

    HBox formButtonBox = new HBox();
    formButtonBox.setSpacing(10);
    formButtonBox.setPadding(new Insets(15, 0, 0, 0));
    formButtonBox.setAlignment(Pos.CENTER_RIGHT);
View Full Code Here

    secHeading.getStyleClass().add("sectionHeading");
    secHeading.setPrefHeight(40);
    secHeading.setAlignment(Pos.TOP_CENTER);

    gp.add(secHeading, 0, 0, 4, 1);
    gp.addRow(1, getSep("Active", MagnifierDoc.active), new Label(":"), activateCB, getSpacer());
    gp.addRow(2, getSep("Radius", MagnifierDoc.radius), new Label(":"), rSlider, rL);
    gp.addRow(3, getSep("Frame Width", MagnifierDoc.frameWidth), new Label(":"), fmSlider, fmL);
    gp.addRow(4, getSep("Scale Factor", MagnifierDoc.scaleFactor), new Label(":"), sfSlider, sfL);
    gp.addRow(5, getSep("Scope Lines Visible", MagnifierDoc.scopeLinesVisible), new Label(":"), slVisibleCB, getSpacer());
    gp.addRow(6, getSep("Scope Line Width", MagnifierDoc.scopeLineWidth), new Label(":"), sllider, slL);
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.