|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
com.darwinsys.io.TextAreaWriter
public final class TextAreaWriter
Simple way to "print" to a JTextArea; just say PrintWriter out = new PrintWriter(new TextAreaWriter(myTextArea)); Then out.println() et all will all appear in the TextArea.
| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
TextAreaWriter(javax.swing.JTextArea textArea)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(char[] cbuf,
int off,
int len)
|
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaWriter(javax.swing.JTextArea textArea)
| Method Detail |
|---|
public void flush()
flush in interface java.io.Flushableflush in class java.io.Writerpublic void close()
close in interface java.io.Closeableclose in class java.io.Writer
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||