This method should be called from the startup method by a subclass that wants to construct and initialize the main frame itself. Most applications can rely on the fact that {code getFrame} lazily constructs the main frame and initializes the frame property.
If the main frame property was already initialized, either implicitly through a call to getFrame or by explicitly calling this method, an IllegalStateException is thrown. If frame is null, an IllegalArgumentException is thrown.
The
JRootPane for this View. All of the components for this View must be added to its rootPane. Most applications will do so by setting the View's
component,
menuBar,
toolBar, and
statusBar properties.