Class EngineEventPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class EngineEventPanel extends JPanel
Simple GUI for monitoring events of an Engine. Used for debugging and testing purposes.
See Also:
  • Field Details

    • textArea

      protected JTextArea textArea
      The area where engine events are posted.
    • scroller

      protected JScrollPane scroller
      The scroll pane containing the textArea.
      See Also:
    • clearButton

      protected JButton clearButton
      The button for clearing the textArea.
      See Also:
  • Constructor Details

    • EngineEventPanel

      public EngineEventPanel()
      Class constructor.
  • Method Details

    • clearText

      public void clearText()
      Clears the text in the text area.
    • setText

      public void setText(String s)
      Sets the text in the text area.
      Parameters:
      s - the new text
    • addText

      public void addText(String s)
      Appends text to the text area and scrolls the text area so the new text is visible.
      Parameters:
      s - the text to append