Creating window application: – When we write a windowed application, we are responsible for creating our own window in which to display that application. The most common type of window to use for this is java frame window. The java frame window can be use with java.awt.Frame class.

If we launch the application with the java tool, that tool will wait the application ends before returning control to the console. From the user point of view, the console appears to hang until the application existed. If we want control to return immediately to the console after the application is launched and display its own window. We can create frame window by using createVolatileImage() method.

Advertisements