public class ReaderToTextPane
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
m_Color
the color to use.
|
protected java.io.LineNumberReader |
m_Input
The reader being monitored.
|
protected javax.swing.JTextPane |
m_Output
The output text component.
|
| 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.
|
protected java.lang.String |
getStyleName()
Returns the style name.
|
void |
run()
Sit here listening for lines of input and appending them straight
to the text component.
|
activeCount, checkAccess, clone, 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, yieldprotected java.io.LineNumberReader m_Input
protected javax.swing.JTextPane m_Output
protected java.awt.Color m_Color
public 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()
protected java.lang.String getStyleName()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread