Home |
Back |
Contents |
Next |
JConsole console = new JConsole(); myPanel.add(console); |
Interpreter interpreter = new Interpreter( console ); new Thread( interpreter ).start(); // start a thread to call the run() method |
Tip: When interacting with any Swing component from outside the Java event handling thread, use the Swing thread safety facilities: SwingUtilities.invokeNow() and invokeLater(). |
Reader getIn(); |
PrintStream getOut(); |
PrintStream getErr(); |
void println( String s ); |
void print( String s ); |
void error( String s ); |
Home |
Back |
Contents |
Next |