Examples of sizeToScene()


Examples of javafx.stage.Popup.sizeToScene()

        public void handle(final MouseEvent event) {
          alert.hide();
        }
      });
    }
    alert.sizeToScene();
    return alert;
  }
 
  /**
   * Creates a {@linkplain Timeline} that will alternate the
View Full Code Here

Examples of javafx.stage.Stage.sizeToScene()

         
          Stage stage = new Stage(StageStyle.UTILITY);
          stage.setTitle("Hello there");
          stage.initModality(Modality.APPLICATION_MODAL);
          stage.setScene(scene);
          stage.sizeToScene();
          stage.showAndWait();
        }
      })
      .start();
  }
View Full Code Here

Examples of javafx.stage.Stage.sizeToScene()

            utilityStage.setMaxWidth(undecorator.getMaxWidth());
        }
        if (undecorator.getMaxHeight() > 0) {
            utilityStage.setMaxHeight(undecorator.getMaxHeight());
        }
        utilityStage.sizeToScene();
        utilityStage.show();
    }

    /**
     * Show a non resizable Stage
View Full Code Here

Examples of javafx.stage.Stage.sizeToScene()

            utilityStage.setMaxWidth(undecorator.getMaxWidth());
        }
        if (undecorator.getMaxHeight() > 0) {
            utilityStage.setMaxHeight(undecorator.getMaxHeight());
        }
        utilityStage.sizeToScene();
        utilityStage.show();
    }

    /**
     * Show a non resizable Stage
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.