Package javafx.scene.layout

Examples of javafx.scene.layout.Region.addEventHandler()


    }

    private Pane initFront(final FlipPanel FLIP_PANEL, final StackPane FRONT_PANEL) {               
        Region settingsButton = new Region();
        settingsButton.getStyleClass().add("settings-button");
        settingsButton.addEventHandler(MouseEvent.MOUSE_CLICKED, EVENT -> FLIP_PANEL.flipToBack());

        VBox componentsFront = new VBox(settingsButton, FRONT_PANEL);
        componentsFront.setSpacing(10);
        VBox.setVgrow(FRONT_PANEL, Priority.ALWAYS);
View Full Code Here


        return front;
    }
    private Pane initBack(final FlipPanel flipPanel, final StackPane FRONT_PANEL) {
        Region backButton = new Region();
        backButton.getStyleClass().add("back-button");
        backButton.addEventHandler(MouseEvent.MOUSE_CLICKED, EVENT -> flipPanel.flipToFront());

        ToggleGroup group = new ToggleGroup();

        final RadioButton standardGreen = new RadioButton("Green");
        standardGreen.setToggleGroup(group);
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.