Below the import statements goes the class definition that will contain our Java application code. Type in:
//Create a simple GUI window
public class TopLevelWindow {
}
All the rest of the code from this tutorial needs to go between the two curly brackets. The TopLevelWindow class is like the covers of a book; it shows the compiler where to look for the main application code.


