在模态窗口打开应用程序意外关闭

时间:2017-06-28 06:33:23

标签: java javafx

我成功执行了jar文件,直到我点击打开模态窗口。点击事件后,应用程序意外关闭。 我无法诊断导致此类问题的原因?

源代码:

public void multipleEntryWindow(Event event, String page_src, String title) throws IOException {
    Stage commonEventStage = new Stage();
    FXMLLoader loader = new FXMLLoader(getClass().getResource(page_src));

    Parent root = loader.load();

    commonEventStage.setScene(new Scene(root));
    commonEventStage.setTitle(title);
      commonEventStage.show();
    commonEventStage.setResizable(true);
}

任何帮助将不胜感激

0 个答案:

没有答案