Class StartServerButton

java.lang.Object
java.util.Observable
com.nilhcem.fakesmtp.gui.info.StartServerButton
All Implemented Interfaces:
Observer

public final class StartServerButton extends Observable implements Observer
Button to start the SMTP server.
Since:
1.0
Author:
Nilhcem
  • Constructor Details

    • StartServerButton

      public StartServerButton()
      Creates a start button to start the SMTP server.

      If the user selects a wrong port before starting the server, the method will display an error message.

  • Method Details

    • toggleButton

      public void toggleButton()
      Switches the text inside the button and calls the PortTextField observer to enable/disable the port field.
      See Also:
    • get

      public JButton get()
      Returns the JButton object.
      Returns:
      the JButton object.
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer