Package javafx.scene.control

Examples of javafx.scene.control.Button


    lSpinner = new ListSpinner<String>("a", "b", "c")
        .withEditable(true).withStringConverter(StringConverterFactory.forString())
        ;
    box.getChildren().add(lSpinner);
    box.getChildren().add(new Button("focus helper"));

    return box;
  }
View Full Code Here


        radialMenu.setOnMenuCloseFinished(menuEvent -> System.out.println("Menu finished to close"));

        HBox buttons = new HBox();
        buttons.setSpacing(10);
        buttons.setPadding(new Insets(10, 10, 10, 10));
        Button buttonShow = new Button("Show menu");
        buttonShow.setOnAction(actionEvent -> radialMenu.show());
        buttons.getChildren().add(buttonShow);

        Button buttonHide = new Button("Hide menu");
        buttonHide.setOnAction(actionEvent -> radialMenu.hide());
        buttons.getChildren().add(buttonHide);

        VBox pane = new VBox();
        pane.getChildren().add(radialMenu);
        pane.getChildren().add(buttons);
View Full Code Here

        radialMenu.setOnMenuCloseFinished(menuEvent -> System.out.println("Menu finished to close"));

        HBox buttons = new HBox();
        buttons.setSpacing(10);
        buttons.setPadding(new Insets(10, 10, 10, 10));
        Button buttonShow = new Button("Show menu");
        buttonShow.setOnAction(actionEvent -> radialMenu.show());
        buttons.getChildren().add(buttonShow);

        Button buttonHide = new Button("Hide menu");
        buttonHide.setOnAction(actionEvent -> radialMenu.hide());
        buttons.getChildren().add(buttonHide);

        VBox pane = new VBox();
        pane.getChildren().add(radialMenu);
        pane.getChildren().add(buttons);
View Full Code Here

    private Button                button;


    // ******************** Initialization ************************************
    @Override public void init() {
        button = new Button("Notify");
        button.setOnAction(event -> {
            notifier.notify(NOTIFICATIONS[RND.nextInt(4)]);
        });
    }
View Full Code Here

        sens_clear.setSensiblePreferedWidth(320.0);
        sens_clear.setComboTypeVisible(false);
        sens_clear.setValueInClearPassword(password.toCharArray());
        flow.getChildren().add(sens_clear);

        Button btn = new Button(RBLoader.ll("Copy To Clipboard"));
        btn.setOnAction((ActionEvent e) -> {
            manager.copyToScrambledClipboard(sens_clear.getValue());
        });
        flow.getChildren().add(btn);
    }
View Full Code Here

        sens_clear.setSensiblePreferedWidth(320.0);
        sens_clear.setComboTypeVisible(false);
        sens_clear.setValueInClearPassword(password.toCharArray());
        flow.getChildren().add(sens_clear);

        Button btn = new Button(RBLoader.ll("Copy To Clipboard"));
        btn.setOnAction((ActionEvent e) -> {
            manager.copyToScrambledClipboard(sens_clear.getValue());
        });
        flow.getChildren().add(btn);
    }
View Full Code Here

        sens_clear.setSensiblePreferedWidth(320.0);
        sens_clear.setComboTypeVisible(false);
        sens_clear.setValueInClearPassword(password.toCharArray());
        flow.getChildren().add(sens_clear);

        Button btn = new Button(RBLoader.ll("Copy To Clipboard"));
        btn.setOnAction((ActionEvent e) -> {
            manager.copyToScrambledClipboard(sens_clear.getValue());
        });
        flow.getChildren().add(btn);
    }
View Full Code Here

    public InternalPopupMessage setOkButton(String ok) {
        if (ok == null) {
            return this;
        }
        ok_btn = new Button(RBLoader.ll(ok));
        ok_btn.setGraphic(new ImageView(UtilityFX.getImage("checkmark_24.png")));
        ok_btn.setPrefSize(115, 25);
        ok_btn.setOnAction((ActionEvent e) -> {
            okPressed();
        });
View Full Code Here

        }
        if (cancel == null) {
            return this;
        }
        setOkButton(RBLoader.ll(ok));
        cancel_btn = new Button(RBLoader.ll(cancel));
        cancel_btn.setGraphic(new ImageView(UtilityFX.getImage("delete_24.png")));
        cancel_btn.setPrefSize(115, 25);
        cancel_btn.setOnAction((ActionEvent e) -> {
            cancelPressed();
        });
View Full Code Here

            this.setVgap(0);
            Label n = new Label("");
            n.setMinWidth(10);
            this.setPrefHeight(42);
            this.setAlignment(Pos.CENTER_RIGHT);
            Button btn_close_ = new Button("X");
            btn_close_.setFocusTraversable(false);
            btn_close_.setAlignment(Pos.BASELINE_CENTER);
            btn_close_.setId("closebtn");
            btn_close_.setPrefSize(45, 25);
            btn_close_.setMaxSize(45, 25);
            btn_close_.setOnAction((ActionEvent actionEvent) -> {
                listener.onClosing();
            });

            Button btn_min_ = new Button("_");
            btn_min_.setFocusTraversable(false);
            btn_min_.setAlignment(Pos.BASELINE_CENTER);
            btn_min_.setId("minibtn");
            btn_min_.setPrefSize(45, 25);
            btn_min_.setMaxSize(45, 25);
            btn_min_.setOnAction((ActionEvent actionEvent) -> {
                listener.onIconified();
            });

            Label label = new Label(__title);
View Full Code Here

TOP

Related Classes of javafx.scene.control.Button

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.