当前位置: 首页>>代码示例>>Java>>正文


Java Stage.hide方法代码示例

本文整理汇总了Java中javafx.stage.Stage.hide方法的典型用法代码示例。如果您正苦于以下问题:Java Stage.hide方法的具体用法?Java Stage.hide怎么用?Java Stage.hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.stage.Stage的用法示例。


在下文中一共展示了Stage.hide方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addTransition

import javafx.stage.Stage; //导入方法依赖的package包/类
protected void addTransition (String typeName) {
    System.out.println("add transition: " + typeName);

    //get fxml path
    String fxmlPath = Transition.getTransitionByType(typeName).getFXMLPath();

    FXMLWindow dialog = null;

    try {
        dialog = new FXMLWindow("Add Transition", 440, 240, fxmlPath, Transition.getTransitionByType(typeName).createFXMLController(this, entry, index));
    } catch (Exception e) {
        JavaFXUtils.showExceptionDialog("Exception", "Cannot add transition, exception was thrown. Please copy this stacktrace and send it to developers!", e);

        return;
    }

    Stage stage = dialog.getStage();
    stage.hide();

    stage.initModality(Modality.WINDOW_MODAL);
    stage.initOwner(this.stage);

    stage.showAndWait();

    refreshListView();
}
 
开发者ID:leeks-and-dragons,项目名称:dialog-tool,代码行数:27,代码来源:TransitionPaneController.java

示例2: btnMakeATransaction

import javafx.stage.Stage; //导入方法依赖的package包/类
@FXML
private void btnMakeATransaction(ActionEvent event) {
	(new TabAccess()).setTabName("tabExpense");
	Stage CashCalculateStage = (Stage) btnMakeATransaction.getScene().getWindow();
	goToMakeATransaction(CashCalculateStage.getX(), CashCalculateStage.getY());
	CashCalculateStage.hide();
}
 
开发者ID:krHasan,项目名称:Money-Manager,代码行数:8,代码来源:CashCalculateController.java

示例3: goToMakeAtransaction

import javafx.stage.Stage; //导入方法依赖的package包/类
@FXML
private void goToMakeAtransaction(ActionEvent event) {
	(new TabAccess()).setTabName("tabGetMoney");
	Stage DashboardStage = (Stage) btnMakeATransaction.getScene().getWindow();
	goToMakeATransaction(DashboardStage.getX(), DashboardStage.getY());
	DashboardStage.hide();
}
 
开发者ID:krHasan,项目名称:Money-Manager,代码行数:8,代码来源:DashboardController.java

示例4: start

import javafx.stage.Stage; //导入方法依赖的package包/类
@Override
public void start(final Stage stage) {
    Platform.setImplicitExit(false);
    STAGE_TITLE = "STAGE_TITLE";
    STAGE_TITLE_2 = "STAGE_TITLE_2";
    STAGE_PANE = new Pane();
    TEST_STAGE = stage;
    stage.show();
    stage.hide();
}
 
开发者ID:Tristan971,项目名称:EasyFXML,代码行数:11,代码来源:StagesTest.java

示例5: loadCircularHole

import javafx.stage.Stage; //导入方法依赖的package包/类
/**
 * Load circular hole Page.
 *
 * @param actionEvent the action event
 * @throws Exception the exception
 */
@FXML
public void loadCircularHole(ActionEvent actionEvent) throws Exception {
    Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();
    primaryStage.hide();
    FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/CircularHolePage.fxml"));
    Scene editorPage = new Scene(loader.load());
    primaryStage.setScene(editorPage);
    primaryStage.setTitle("Experiment: Circular Hole Diffraction");
    primaryStage.show();

}
 
开发者ID:RudyB,项目名称:Optics-Simulator,代码行数:18,代码来源:StartPageController.java

示例6: loadGratingDiffraction

import javafx.stage.Stage; //导入方法依赖的package包/类
/**
 * Load grating diffraction Page.
 *
 * @param actionEvent the action event
 * @throws Exception the exception
 */
@FXML
public void loadGratingDiffraction(ActionEvent actionEvent) throws Exception {
    Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();
    primaryStage.hide();
    primaryStage.setTitle("Experiment: Grating Diffraction");
    FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/DiffractionGratingPage.fxml"));
    Scene editorPage = new Scene(loader.load());
    primaryStage.setScene(editorPage);
    primaryStage.show();
}
 
开发者ID:RudyB,项目名称:Optics-Simulator,代码行数:17,代码来源:StartPageController.java

示例7: loadDiffractionPage

import javafx.stage.Stage; //导入方法依赖的package包/类
/**
 * Load diffraction page.
 *
 * @param actionEvent the action event
 * @throws IOException the io exception
 */
@FXML
public void loadDiffractionPage(ActionEvent actionEvent) throws IOException {
    Stage primaryStage = (Stage) myMenuBar.getScene().getWindow();
    primaryStage.hide();
    FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/DiffractionGratingPage.fxml"));
    Scene editorPage = new Scene(loader.load());
    primaryStage.setScene(editorPage);
    primaryStage.setTitle("Experiment: Grating Diffraction");
    primaryStage.show();
}
 
开发者ID:RudyB,项目名称:Optics-Simulator,代码行数:17,代码来源:MenuBarController.java

示例8: loadCircularHolePage

import javafx.stage.Stage; //导入方法依赖的package包/类
/**
 * Load circular hole page.
 *
 * @param actionEvent the action event
 * @throws IOException the io exception
 */
@FXML void loadCircularHolePage(ActionEvent actionEvent) throws  IOException {
    Stage primaryStage = (Stage) myMenuBar.getScene().getWindow();
    primaryStage.hide();
    FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/CircularHolePage.fxml"));
    Scene editorPage = new Scene(loader.load());
    primaryStage.setScene(editorPage);
    primaryStage.setTitle("Experiment: Circular Hole Diffraction");
    primaryStage.show();
}
 
开发者ID:RudyB,项目名称:Optics-Simulator,代码行数:16,代码来源:MenuBarController.java


注:本文中的javafx.stage.Stage.hide方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。