modules/fxpackager/src/test/java/hello/TestPackager.java
Print this page
*** 170,177 ****
public static void main(String[] args) {
TestPackager.args = args;
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
! javax.swing.SwingUtilities.invokeLater(TestPackager::createAndShowGUI);
}
}
--- 170,182 ----
public static void main(String[] args) {
TestPackager.args = args;
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
! try {
! javax.swing.SwingUtilities.invokeAndWait(TestPackager::createAndShowGUI);
! }
! catch (Exception e) {
! e.printStackTrace();
! }
}
}