Create a new class in your project, named JarExampleApplication. JFrame; import javax. This was the case in the previous section. While the GUI is visible, the application sits in an event loop waiting for user input. Who knows? You will see a message displayed where you clicked This applet also takes parameters passed by the HTML page.
In the constructor in the application above, we setDefaultCloseOperationpassing the WindowConstants.
This will automatically run Java and load up the application. The configuration for this application will be used to create the self-executable JAR file in the next section. Type start JarExampleApplication. You should uncheck.
JFrame as its superclass.