java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.marginallyclever.communications.application.TextInterfaceWithHistory
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TextInterfaceWithHistory extends JPanel
A chat style interface with a history of commands. The history is a list of commands sent and received.
See Also:
  • Constructor Details

    • TextInterfaceWithHistory

      public TextInterfaceWithHistory()
  • Method Details

    • addToHistory

      public void addToHistory(String who, String actionCommand)
    • addActionListener

      public void addActionListener(ActionListener e)
    • removeActionListener

      public void removeActionListener(ActionListener e)
    • getCommand

      public String getCommand()
    • setCommand

      public void setCommand(String str)
    • sendCommand

      public void sendCommand(String str)
    • setEnabled

      public void setEnabled(boolean state)
      Overrides:
      setEnabled in class JComponent
    • main

      public static void main(String[] args)