common-util

local.tomas.util.swing.io
Class ReaderDisplay

java.lang.Object
  extended by local.tomas.util.swing.io.ReaderDisplay
All Implemented Interfaces:
Runnable

public class ReaderDisplay
extends Object
implements Runnable

This runnable copies everything read from a Reader into a Swing TextArea.

Author:
tomas.teubner

Constructor Summary
ReaderDisplay(Reader reader, JTextArea textArea)
          Constructor.
 
Method Summary
 void run()
          Copies in a loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderDisplay

public ReaderDisplay(Reader reader,
                     JTextArea textArea)
Constructor.

Parameters:
reader - the reader
textArea - the text area
Method Detail

run

public void run()
Copies in a loop.

Specified by:
run in interface Runnable

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.