java.awt.Window.hide()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中java.awt.Window.hide()方法的一些代码示例,展示了Window.hide()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.hide()方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:hide

Window.hide介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public class Controller {

  @FXML
  private Parent root ;

  @FXML
  private void myMethod() {
    Window window = root.getScene().getStage();
    // assuming you are running as a standalone application, the window 
    // will actually be a Stage instance.

    window.hide();  // for example...
  }
}

代码示例来源:origin: stackoverflow.com

final Window window = new Stage();
. . .
PauseTransition pause = new PauseTransition(Duration.seconds(30));
pause.setOnFinished(e -> window.hide());
pause.play();

代码示例来源:origin: stackoverflow.com

@FXML private Button closeButton ;

public void handleCloseButton() {
 Scene scene = closeButton.getScene();
 if (scene != null) {
  Window window = scene.getWindow();
  if (window != null) {
   window.hide();
  }
 }
}

代码示例来源:origin: stackoverflow.com

// Somewhere in code
Dialog<?> dialog = new Dialog<>();
Window    window = dialog.getDialogPane().getScene().getWindow();
window.setOnCloseRequest(event -> window.hide());

代码示例来源:origin: org.scijava/j3dutils

@Override
    public void windowClosing(WindowEvent winEvent) {
  if (MainFrame.this.applet != null) {
    MainFrame.this.applet.destroy();
  }
  Window w = winEvent.getWindow();
  w.hide();
  try {
    w.dispose();
  } catch (IllegalStateException e) {}
  if (_doExit) {
    System.exit(0);
  }
  }
});

代码示例来源:origin: stackoverflow.com

this.hide();
calculator.show();

代码示例来源:origin: stackoverflow.com

this.hide();
JOptionPane.showMessageDialog(null,"ACCESS GRANTED");
welcome s2 = new welcome();

相关文章

Window类方法