Package madkit.gui

Class OutputPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class OutputPanel extends JPanel
A scrollable panel that prints all the agent's logging activity. This component is the default panel which is used for the frames assigned to agents that do not define their own GUI and which are launched using true for the createFrame parameter.
Since:
MaDKit 5.0.0.2
Version:
1
Author:
Fabien Michel
See Also:
  • Constructor Details

    • OutputPanel

      public OutputPanel(AbstractAgent agent)
      Builds the panel for the agent
      Parameters:
      agent -
  • Method Details

    • writeToTextArea

      public void writeToTextArea(String text)
    • clearOutput

      public void clearOutput()
      Remove all the contained text.
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • getHandler

      public StreamHandler getHandler()
      Returns the handler which has been created for the agent
      Returns:
      the handler associated with this panel