Package javafx.stage

Examples of javafx.stage.Stage.show()


        });
        HBox buttonbox= new HBox();
        buttonbox.getChildren().add(button);
        borderPane.setBottom(buttonbox);
        stage.setScene(new Scene(borderPane));
        stage.show();
        stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
          @Override
          public void handle(WindowEvent event) {
            System.exit(0);
          }
View Full Code Here


      public void changed(ObservableValue<? extends State> observable, State oldValue, State newValue) {
        if (newValue == State.RUNNING && !alert.isShowing()) {
          Platform.runLater(new Runnable() {
            public void run() {
              parent.getScene().getRoot().setEffect(ColorAdjustBuilder.create().brightness(-0.5d).build());
              alert.show();
            }
          });
        } else if (newValue == State.SUCCEEDED || newValue == State.FAILED || newValue == State.CANCELLED) {
          Platform.runLater(new Runnable() {
            public void run() {
View Full Code Here

                        });
                        listView.getItems().setAll(fxForm.getConstraintViolations());
                        Scene scene = new Scene(listView);
                        Stage stage = new Stage();
                        stage.setScene(scene);
                        stage.show();
                    }
                }).build();
    }

    private Node createCSSNode() {
View Full Code Here

        final Stage stage = new Stage();
        stage.setScene(scene);
        stage.setResizable(false);
        stage.initModality(Modality.APPLICATION_MODAL);
        stage.setTitle(ResourceLoader.getResource("label.title.createLeague"));
        stage.show();
    }
}
View Full Code Here

        final Stage stage = new Stage();
        stage.setScene(scene);
        stage.setResizable(false);
        stage.initModality(Modality.APPLICATION_MODAL);
        stage.setTitle(ResourceLoader.getResource(TITLE_CREATE_LEAGUE));
        stage.show();
    }

    public void editFixture(final ActionEvent event) {

    }
View Full Code Here

     */
    @Override
    protected void perform(Wave wave) {

        Stage s = new Stage();
        s.show();
        s.close();
        System.out.println("ui command done");
    }

}
View Full Code Here

            return;
        }
        ((Stage) header.getScene().getWindow()).close();
        Stage primaryStage = CustomerApp.getPrimaryStage();
        primaryStage.setScene(new Scene(customerDataScreen, 777, 500));
        primaryStage.show();
    }

    @FXML
    public void employee() {
        username.setText("employee");
View Full Code Here

        scene.getStylesheets().add("org/livesub/styles/GlobalStyle.css");
       
        primaryStage.setResizable(false);
        primaryStage.setTitle("Go To");
        primaryStage.setScene(scene);
        primaryStage.show();
    }
   
    public static void main(String[] args) {
        launch(args);
    }
View Full Code Here

            final Stage stage = getStage(swb, scene);

            // Show the stage
            this.stageMap.put(stageKey, stage);

            stage.show();
        }
    }

    /**
     * Gets the root pane.
View Full Code Here

                        .root(LabelBuilder.create().text("Run into JAT").build())
                        .build())

                .build();

        s.show();
        // Sample for popup => Attach owner !!!
        // getLocalFacade().getGlobalFacade().getApplication().getStage()
    }

}
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.