VisualLog

public class VisualLog extends JFrame

A text area to be used by agents. It allows each agent to maintain an output separate from the others.

Author:The Condor

Fields

t

int t

Constructors

VisualLog

public VisualLog(String agentname, int windowwidth, int windowheight)

Methods

clearLog

public void clearLog()

Clear the log, deleting all entries.

setPreferredSize

public void setPreferredSize(Dimension preferredSize)

writeLine

public void writeLine(String newline)

Add another line to the log

Parameters:
  • newline – A line to print