Package javafx.stage

Examples of javafx.stage.Stage.show()


    AnchorPane pane = (AnchorPane) loader.load();
    final Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(pane);
    stage.setScene(scene);
    stage.show();
  }

  public void close() {
    System.exit(0);
  }
View Full Code Here


    AnchorPane helpDialog = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.UTILITY);
    Scene scene = new Scene(helpDialog);
    stage.setScene(scene);
    stage.show();
  }
 
  public void pickuper() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Pickuper.fxml"));
View Full Code Here

    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
  }
 
  public void fisher() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("Fisher.fxml"));
View Full Code Here

    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
  }

  public void spellCaster() throws IOException {
    FXMLLoader loader = new FXMLLoader(
        JBot.class.getResource("SpellCaster.fxml"));
View Full Code Here

    AnchorPane aPane = (AnchorPane) loader.load();
    Stage stage = new Stage();
    stage.initStyle(StageStyle.DECORATED);
    Scene scene = new Scene(aPane);
    stage.setScene(scene);
    stage.show();
  }
 
  @FXML
  public void pause() {
    if (!pause.isSelected()) {
View Full Code Here

    stage.setScene(scene);
    stage.setOpacity(0.1);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    stage.setWidth(screenSize.getWidth());
    stage.setHeight(screenSize.getHeight());
    stage.show();
    scene.setOnMousePressed(new EventHandler<MouseEvent>() {
      public void handle(MouseEvent me) {
        rodX = (int) me.getScreenX();
        rodY = (int) me.getScreenY();
        stage.close();
View Full Code Here

  public void error(String message) {
    Stage dialog = new Stage();
    dialog.initStyle(StageStyle.UTILITY);
    Scene scene = new Scene(new Group(new Text(25, 25, message)));
    dialog.setScene(scene);
    dialog.show();
  }

  private void updateMessage(String message, final Paint paint, boolean clear) {
    String text = message != null ? message : "";
    if (messageText instanceof Text) {
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.