public class SwingTextTerminal extends Object implements TextTerminal
| Constructor and Description | 
|---|
SwingTextTerminal()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
display()  | 
void | 
dispose()
This method is typically called at the end of a text-based input/output session in order to allow the terminal to release its screen resources. 
 | 
JFrame | 
getFrame()  | 
JTextArea | 
getTextArea()  | 
void | 
println()
Terminates the current line by writing the line separator string. 
 | 
void | 
rawPrint(String message)
Prints the message in its raw form. 
 | 
String | 
read(boolean masking)
Reads a line of text 
 | 
public JFrame getFrame()
public JTextArea getTextArea()
public String read(boolean masking)
TextTerminalread in interface TextTerminalmasking - true, if the input should be masked (for example to enter a password)public void rawPrint(String message)
TextTerminalrawPrint in interface TextTerminalpublic void println()
TextTerminalprintln in interface TextTerminalpublic void display()
public void dispose()
TextTerminaldispose in interface TextTerminal