Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

reeb.lazysync
Class TextAreaWriter  view TextAreaWriter download TextAreaWriter.java

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.StringWriter
          extended byreeb.lazysync.TextAreaWriter

public class TextAreaWriter
extends java.io.StringWriter

TextField writer extends StringWriter to write directly to a Swing JTextField


Field Summary
private  javax.swing.text.JTextComponent textArea
          The text field
 
Fields inherited from class java.io.StringWriter
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TextAreaWriter(javax.swing.text.JTextComponent textArea)
          Create a new string writer, using the default initial string-buffer size.
 
Method Summary
 void flush()
          Flush - writes to the text area
 void flushNow()
          Flushes immediately - only to be used from event dispatching thead
 
Methods inherited from class java.io.StringWriter
close, getBuffer, toString, write, write, write, write
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

textArea

private javax.swing.text.JTextComponent textArea
The text field

Constructor Detail

TextAreaWriter

public TextAreaWriter(javax.swing.text.JTextComponent textArea)
Create a new string writer, using the default initial string-buffer size.

Method Detail

flush

public void flush()
Flush - writes to the text area


flushNow

public void flushNow()
Flushes immediately - only to be used from event dispatching thead