The second one allows the number of rows and columns to be specified. The last constructor allows the number of rows and columns to be specified along with the horizontal and vertical space between the components. Insets are used to leave space between a container and the enclosing window. This method must be overidden and it returns an object which contains the top, bottom, left and right insets to be used. It is possible to create stand-alone applications using frames.
Frames are a subclass of windows and are created by a program rather than an applet.
The first constructor creates a standard window with no title while the second creates a window with the title name . Dialog boxes are commonly used to get input from users. They do not have menu bars and are generally used to hold a set of related controls. When active, all input is directed to a modal dialog box. Other parts of a program cannot be accessed while they are active, they must first be closed.