|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.darwinsys.io.TextAreaOutputStream
public final class TextAreaOutputStream
Simple way to "print" to a JTextArea; just say PrintStream out = new PrintStream(new TextAreaOutputStream(myTextArea)); Then out.println() et all will all appear in the TextArea.
| Constructor Summary | |
|---|---|
TextAreaOutputStream(javax.swing.JTextArea textArea)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(int b)
|
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaOutputStream(javax.swing.JTextArea textArea)
| Method Detail |
|---|
public void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void close()
close in interface java.io.Closeableclose in class java.io.OutputStream
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||