Package weka.gui
Class ReaderToTextPane
java.lang.Object
java.lang.Thread
weka.gui.ReaderToTextPane
- All Implemented Interfaces:
Runnable
A class that sends all lines from a reader to a JTextPane component.
- Version:
- $Revision: 15288 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionReaderToTextPane
(Reader input, JTextPane output) Sets up the thread.ReaderToTextPane
(Reader input, JTextPane output, Color color) Sets up the thread. -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
ReaderToTextPane
Sets up the thread. Using black as color for displaying the text.- Parameters:
input
- the Reader to monitoroutput
- the TextArea to send output to
-
ReaderToTextPane
Sets up the thread.- Parameters:
input
- the Reader to monitoroutput
- the TextArea to send output tocolor
- the color to use
-
-
Method Details