Save the file as "TopLevelWindow.java".
Compile the application in a terminal window using the Javac compiler. If you’re unsure how to do so, look at the compilation steps from the first Java application tutorial.
javac TopLevelWindow.java
Once the application compiles successfully, run the program:
java TopLevelWindow
After pressing Enter, the window will appear, and you will see your first windowed application!
Well done, this tutorial is the first building block to making powerful user interfaces. Now that you know how to make the container, you can play with adding other graphical components.


