kawa

Class MessageArea

public class MessageArea extends TextArea implements KeyListener, TextListener

Simple TextArea that always scrolls to the bottom. Also creates an out and err PrintWriter so that you can redirect stdout/stderr to these streams, using the System.setOut/setErr methods.
Field Summary
intendMark
intoutputMark
Constructor Summary
MessageArea(QueueReader in)
simple TextArea that always scrolls to the bottom.
Method Summary
voiddeleteOldText()
Delete old text, prior to line containing outputMark.
PrintWritergetStderr()
PrintWritergetStdout()
voidkeyPressed(KeyEvent e)
voidkeyReleased(KeyEvent e)
voidkeyTyped(KeyEvent e)
voidtextValueChanged(TextEvent e)
voidwrite(String str)

Field Detail

endMark

public int endMark

outputMark

public int outputMark

Constructor Detail

MessageArea

public MessageArea(QueueReader in)
simple TextArea that always scrolls to the bottom. Also creates an out and err PrintWriter so that you can redirect stdout/stderr to these streams, using the System.setOut/setErr methods.

Method Detail

deleteOldText

public void deleteOldText()
Delete old text, prior to line containing outputMark.

getStderr

public PrintWriter getStderr()

getStdout

public PrintWriter getStdout()

keyPressed

public void keyPressed(KeyEvent e)

keyReleased

public void keyReleased(KeyEvent e)

keyTyped

public void keyTyped(KeyEvent e)

textValueChanged

public void textValueChanged(TextEvent e)

write

public void write(String str)