javafx.scene.control.ButtonBuilder Java Examples

The following examples show how to use javafx.scene.control.ButtonBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InsetTextButtonSample.java    From marathonv5 with Apache License 2.0 5 votes vote down vote up
public InsetTextButtonSample() {

        String insetTextCss = InsetTextButtonSample.class.getResource("InsetTextButton.css").toExternalForm();
        VBox vbox = VBoxBuilder.create().id("insettextvbox").spacing(10).padding(new Insets(10)).children(
                ButtonBuilder.create().text("Inset Text Button").id("button1").build(),
                ButtonBuilder.create().text("Plain Text Button").id("button2").build()).build();

        vbox.getStylesheets().add(insetTextCss);
        getChildren().add(vbox);
    }
 
Example #2
Source File: InsetTextButtonSample.java    From marathonv5 with Apache License 2.0 5 votes vote down vote up
public InsetTextButtonSample() {

        String insetTextCss = InsetTextButtonSample.class.getResource("InsetTextButton.css").toExternalForm();
        VBox vbox = VBoxBuilder.create().id("insettextvbox").spacing(10).padding(new Insets(10)).children(
                ButtonBuilder.create().text("Inset Text Button").id("button1").build(),
                ButtonBuilder.create().text("Plain Text Button").id("button2").build()).build();

        vbox.getStylesheets().add(insetTextCss);
        getChildren().add(vbox);
    }