|
Duplicate :
|
Run next code snippet on Mac and Windows. Mac wouldn't print "after", but Windows would.
public class StageClose extends Application
{
public static void main(String[] args) {
launch(args);
System.err.println("after");
}
@Override
public void start(Stage stage) throws Exception {
stage.show();
stage.close();
}
}
|