FileDocCategorySizeDatePackage
JWritableTextArea.javaAPI DocExample1173Wed Feb 15 06:26:02 GMT 2006com.elharo.io.ui

JWritableTextArea

public class JWritableTextArea extends JTextArea

Fields Summary
private Writer
writer
Constructors Summary
public JWritableTextArea()


    
    this("", 0, 0);
  
public JWritableTextArea(String text)

    this(text, 0, 0);
  
public JWritableTextArea(int rows, int columns)

    this("", rows, columns);
  
public JWritableTextArea(String text, int rows, int columns)

    super(text, rows, columns);
    setFont(new Font("Monospaced", Font.PLAIN, 12));
    setEditable(false);
  
Methods Summary
public java.io.WritergetWriter()

    return writer;
  
public voidreset()

    this.setText("");
    writer = new BufferedWriter(new TextAreaWriter());