public class ReaderToTextPane
extends java.lang.Thread
| Constructor and Description |
|---|
ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output)
Sets up the thread.
|
ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output,
java.awt.Color color)
Sets up the thread.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Returns the color in use.
|
void |
run()
Sit here listening for lines of input and appending them straight
to the text component.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output)
input - the Reader to monitoroutput - the TextArea to send output topublic ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output,
java.awt.Color color)
input - the Reader to monitoroutput - the TextArea to send output tocolor - the color to usepublic java.awt.Color getColor()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread