public final class StartServerButton extends Observable implements Observer
| Constructor and Description |
|---|
StartServerButton()
Creates a start button to start the SMTP server.
|
| Modifier and Type | Method and Description |
|---|---|
JButton |
get()
Returns the JButton object.
|
void |
toggleButton()
Switches the text inside the button and calls the PortTextField observer to enable/disable the port field.
|
void |
update(Observable o,
Object arg) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic StartServerButton()
If the user selects a wrong port before starting the server, the method will display an error message.
public void toggleButton()
PortTextFieldpublic JButton get()
public void update(Observable o, Object arg)
Copyright © 2015. All rights reserved.