Package javafx.scene.layout

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


        final BigDecimalField localizedCurrency = new BigDecimalField(BigDecimal.ZERO, new BigDecimal("0.01"), NumberFormat.getCurrencyInstance(Locale.UK));
        final BigDecimalField promptText = new BigDecimalField();
        promptText.setNumber(null);
        promptText.setPromptText("Enter something");
        int rowIndex = 1;
        root.addRow(rowIndex++, new Label("default"), defaultSpinner);
        root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
View Full Code Here


        final BigDecimalField promptText = new BigDecimalField();
        promptText.setNumber(null);
        promptText.setPromptText("Enter something");
        int rowIndex = 1;
        root.addRow(rowIndex++, new Label("default"), defaultSpinner);
        root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
View Full Code Here

        promptText.setNumber(null);
        promptText.setPromptText("Enter something");
        int rowIndex = 1;
        root.addRow(rowIndex++, new Label("default"), defaultSpinner);
        root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
View Full Code Here

        promptText.setPromptText("Enter something");
        int rowIndex = 1;
        root.addRow(rowIndex++, new Label("default"), defaultSpinner);
        root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
        root.addRow(rowIndex++, new Label("with promptText"), promptText);
View Full Code Here

        root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
        root.addRow(rowIndex++, new Label("with promptText"), promptText);
        CalendarTextField calendarTextField = new CalendarTextField();
        root.addRow(rowIndex++, new Label("CalendarTextField"), calendarTextField);
        ComboBox<Locale> cmbLocales = new ComboBox<>(FXCollections.observableArrayList(Locale.GERMANY, Locale.UK, Locale.FRANCE));
View Full Code Here

        root.addRow(rowIndex++, new Label("percent"), percent);
        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
        root.addRow(rowIndex++, new Label("with promptText"), promptText);
        CalendarTextField calendarTextField = new CalendarTextField();
        root.addRow(rowIndex++, new Label("CalendarTextField"), calendarTextField);
        ComboBox<Locale> cmbLocales = new ComboBox<>(FXCollections.observableArrayList(Locale.GERMANY, Locale.UK, Locale.FRANCE));
        cmbLocales.setOnAction(event -> {
View Full Code Here

        root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
        final BigDecimalField disabledField = new BigDecimalField();
        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
        root.addRow(rowIndex++, new Label("with promptText"), promptText);
        CalendarTextField calendarTextField = new CalendarTextField();
        root.addRow(rowIndex++, new Label("CalendarTextField"), calendarTextField);
        ComboBox<Locale> cmbLocales = new ComboBox<>(FXCollections.observableArrayList(Locale.GERMANY, Locale.UK, Locale.FRANCE));
        cmbLocales.setOnAction(event -> {
            dateFormatProperty.set(DateFormat.getDateInstance(DateFormat.MEDIUM, cmbLocales.getValue()));
View Full Code Here

        disabledField.setDisable(true);
        root.addRow(rowIndex++, new Label("disabled field"), disabledField);
        root.addRow(rowIndex++, new Label("regular TextField"), new TextField("1.000,1234"));
        root.addRow(rowIndex++, new Label("with promptText"), promptText);
        CalendarTextField calendarTextField = new CalendarTextField();
        root.addRow(rowIndex++, new Label("CalendarTextField"), calendarTextField);
        ComboBox<Locale> cmbLocales = new ComboBox<>(FXCollections.observableArrayList(Locale.GERMANY, Locale.UK, Locale.FRANCE));
        cmbLocales.setOnAction(event -> {
            dateFormatProperty.set(DateFormat.getDateInstance(DateFormat.MEDIUM, cmbLocales.getValue()));
            numberFormatProperty.set(NumberFormat.getNumberInstance(cmbLocales.getValue()));
        });
View Full Code Here

        ComboBox<Locale> cmbLocales = new ComboBox<>(FXCollections.observableArrayList(Locale.GERMANY, Locale.UK, Locale.FRANCE));
        cmbLocales.setOnAction(event -> {
            dateFormatProperty.set(DateFormat.getDateInstance(DateFormat.MEDIUM, cmbLocales.getValue()));
            numberFormatProperty.set(NumberFormat.getNumberInstance(cmbLocales.getValue()));
        });
        root.addRow(rowIndex++, new Label("Locale"), cmbLocales);

        root.addRow(rowIndex++, new Label("Field with boundaries (0,100%)"),
                BigDecimalFieldBuilder.create()
                        .number(new BigDecimal("0.1"))
                        .minValue(BigDecimal.ZERO)
View Full Code Here

            dateFormatProperty.set(DateFormat.getDateInstance(DateFormat.MEDIUM, cmbLocales.getValue()));
            numberFormatProperty.set(NumberFormat.getNumberInstance(cmbLocales.getValue()));
        });
        root.addRow(rowIndex++, new Label("Locale"), cmbLocales);

        root.addRow(rowIndex++, new Label("Field with boundaries (0,100%)"),
                BigDecimalFieldBuilder.create()
                        .number(new BigDecimal("0.1"))
                        .minValue(BigDecimal.ZERO)
                        .maxValue(BigDecimal.ONE)
                        .stepwidth(new BigDecimal("0.01"))
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.