Package javafx.scene.control

Examples of javafx.scene.control.ToggleButton


        field4 = new TextField();
        field4.setPromptText("text4");
        field5 = new TextField();
        field5.setPromptText("text5");

        button1 = new ToggleButton("invalid");
        button1.setPrefWidth(100);
        button1.setOnAction(handler);
        button2 = new ToggleButton("invalid");
        button2.setPrefWidth(100);
        button2.setOnAction(handler);
        button3 = new ToggleButton("none");
        button3.setPrefWidth(100);
        button3.setOnAction(handler);
        button4 = new ToggleButton("none");
        button4.setPrefWidth(100);
        button4.setOnAction(handler);
        button5 = new ToggleButton("none");
        button5.setPrefWidth(100);
        button5.setOnAction(handler);
        checkBox5 = new CheckBox("invisible");
        checkBox5.setPrefWidth(100);
        checkBox5.setOnAction(handler);
View Full Code Here


    @Override
    @ThreadConfined(type = ThreadType.ANY)
    public Category updateCategoryBorder() {
        final Category category = super.updateCategoryBorder();
        ToggleButton toggleForCategory = getToggleForCategory(category);

        Runnable r = () -> {
            toggleForCategory.setSelected(true);
        };
        if (Platform.isFxApplicationThread()) {
            r.run();
        } else {
            Platform.runLater(r);
View Full Code Here

        }
       
        // NOTE: invoke once during Dialog creating
        private Builder setStackTrace(Throwable t) {
            // view button
            stage.viewStacktraceButton = new ToggleButton(getString("buttonlabel.viewstacktrace"));
           
            // copy button
            stage.copyStacktraceButton = new Button(getString("buttonlabel.copystacktrace"));
            HBox.setMargin(stage.copyStacktraceButton, new Insets(0, 0, 0, MARGIN));
           
View Full Code Here

TOP

Related Classes of javafx.scene.control.ToggleButton

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.