Package com.nilhcem.fakesmtp.gui.info
Class StartServerButton
java.lang.Object
java.util.Observable
com.nilhcem.fakesmtp.gui.info.StartServerButton
- All Implemented Interfaces:
Observer
Button to start the SMTP server.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JButton object.void
Switches the text inside the button and calls the PortTextField observer to enable/disable the port field.void
update
(Observable o, Object arg) Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
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