A form is a top level container with a title bar and a menu bar. The contents of the form are placed between the two bars. Reproduced below for reference, we see the screenshot of a form. It shows the place where the title of the form appears (TitleBar) and the place for commands (MenuBar) where the Exit command has been placed. Also shown is the space for the Content Pane, which actually holds the entire set of components that are added to the form.
Form class has two constructors:
public Form()—creates a form without any title. If you use this constructor, then you can later set the title. However, if no title is specified ...