本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}