Class ConsoleTextArea

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class ConsoleTextArea extends JTextArea
Internal component of the CaptureConsoleWindow.

Title: JAS

Description: Java Agent-based Simulation library

Copyright (C) 2002 Michele Sonnessa

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Author:
Michele Sonnessa (taken from an example of Byte review).

See Also:
  • Constructor Details

    • ConsoleTextArea

      public ConsoleTextArea() throws IOException
      It is attached to the default System.out and System.err streams.
      Throws:
      IOException - Thrown in case of stream error.
  • Method Details

    • stopReading

      public void stopReading()
    • startReading

      public void startReading()
    • isReading

      public boolean isReading()
    • dispose

      public void dispose()
      Release the captured streams.
    • log

      public void log(String message)