Class MainPanel

java.lang.Object
com.nilhcem.fakesmtp.gui.MainPanel

public final class MainPanel extends Object
Provides the main panel of the application, which will contain all the components.
Since:
1.0
Author:
Nilhcem
  • Constructor Details

    • MainPanel

      public MainPanel(Observable menu)
      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

      public JPanel get()
      Returns the JPanel object.
      Returns:
      the JPanel object.
    • getPortText

      public PortTextField 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

      public SaveMsgField getSaveMsgTextField()
      Returns reference to saveMsgTextField. Used for saving last values to file
      Returns:
      reference to saveMsgTextField. Used for saving last values to file