Package weka.gui

Class LogWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CaretListener, ChangeListener, RootPaneContainer, WindowConstants

public class LogWindow extends JFrame implements CaretListener, ChangeListener
Frame that shows the output from stdout and stderr.
Version:
$Revision: 10216 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Field Details

    • STYLE_STDOUT

      public static final String STYLE_STDOUT
      the name of the style for stdout
      See Also:
    • STYLE_STDERR

      public static final String STYLE_STDERR
      the name of the style for stderr
      See Also:
    • COLOR_STDOUT

      public static final Color COLOR_STDOUT
      the color of the style for stdout
    • COLOR_STDERR

      public static final Color COLOR_STDERR
      the Color of the style for stderr
    • DEBUG

      public static final boolean DEBUG
      whether we're debugging - enables output on stdout
      See Also:
    • m_UseWordwrap

      public boolean m_UseWordwrap
      whether the JTextPane has wordwrap or not
  • Constructor Details

    • LogWindow

      public LogWindow()
      creates the frame
  • Method Details

    • clear

      public void clear()
      clears the output
    • close

      public void close()
      closes the frame
    • trim

      public void trim()
      trims the JTextPane, if too big
    • setWordwrap

      public void setWordwrap(boolean wrap)
      toggles the wordwrap
      override wordwrap from: http://forum.java.sun.com/thread.jspa?threadID=498535&messageID=2356174
    • caretUpdate

      public void caretUpdate(CaretEvent e)
      Called when the caret position is updated.
      Specified by:
      caretUpdate in interface CaretListener
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Invoked when the target of the listener has changed its state.
      Specified by:
      stateChanged in interface ChangeListener
    • main

      public static void main(String[] args)
      for testing only