The class FrmMain

A window typically is represented by class JFrame of package javax.swing. To create the specific main window of application SimplyHTML, FrmMain extends JFrame by adding certain fields:

- jtpDocs - a JTabbedPane for displaying one or more documents
- APP_NAME - a string constant for representing the application's human readable name
- Several fields for menus and menu items

The fields are declared private to class FrmMain so that they can not be seen or manipulated outside class FrmMain.

In addition, class FrmMain adds several methods with functionality for

- constructing the window
- ensure window closings do not cause loss of data
- adjusting the windows appearance
- adding a menu bar and menu items

Above functions are described in more detail in the following chapters.