public class SwingRemoteControl extends AbstractTextRemoteControl
| Constructor and Description |
|---|
SwingRemoteControl(JTextField inputTextField,
JTextArea outputTextArea)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
readLine()
Returns the next line entered by the user.
|
void |
writeLine(String line)
Writes a line to the output that is to made visible to the user.
|
getSongContext, run, setSongContextpublic SwingRemoteControl(JTextField inputTextField, JTextArea outputTextArea)
inputTextField - the input text fieldoutputTextArea - the output text fieldpublic String readLine()
TextRemoteControlpublic void writeLine(String line)
TextRemoteControlline - the string to write