Package com.nilhcem.fakesmtp.gui
Class MainPanel
java.lang.Object
com.nilhcem.fakesmtp.gui.MainPanel
Provides the main panel of the application, which will contain all the components.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JPanel object.Returns reference to portText field.Returns reference to saveMsgTextField.
-
Constructor Details
-
MainPanel
Creates the main panel.To create the main panel, the method will first have to handle components interactions by adding observers to observable elements, then the method will build the GUI by placing all the components in the main panel.
- Parameters:
menu
- the menu bar which will notify the directory file chooser.
-
-
Method Details
-
get
Returns the JPanel object.- Returns:
- the JPanel object.
-
getPortText
Returns reference to portText field. Used for saving last values to file- Returns:
- reference to portText field. Used for saving last values to file
-
getSaveMsgTextField
Returns reference to saveMsgTextField. Used for saving last values to file- Returns:
- reference to saveMsgTextField. Used for saving last values to file
-