A common complaint about Java applications is their long startup time. The Java virtual machine takes some time to load all required classes, particularly for a Swing application that needs to pull in large amounts of Swing and AWT library code. Users dislike applications that take a long time to bring up an initial screen, and they might even try launching the application multiple times if they suspect the first launch was unsuccessful. The remedy is a splash screen—a small window that appears quickly, telling the user that the application has been launched successfully.
Of course, you can put up a window as soon as your
main method starts. However, the
main method is only launched after the class loader has loaded all ...