Package com.nilhcem.fakesmtp.gui
Class MainFrame
java.lang.Object
com.nilhcem.fakesmtp.gui.MainFrame
Provides the main window of the application.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MainFrame
public MainFrame()Creates the main window and makes it visible.First, assigns the main panel to the default uncaught exception handler to display exceptions in this panel.
Before creating the main window, the application will have to set some elements, such as:- The minimum and default size;
- The menu bar and the main panel;
- An icon image;
- A shutdown hook to stop the server, once the main window is closed.
The icon of the application is a modified version from the one provided in "
WebAppers.com
" (Creative Commons Attribution 3.0 License).
-
-
Method Details
-
close
public void close()
-