本文整理了Java中java.awt.Window.hide()
方法的一些代码示例,展示了Window.hide()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.hide()
方法的具体详情如下:
包路径:java.awt.Window
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!