Package dialog

Class TerminalPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TerminalPanel extends DialogPanel
Class for a terminal panel for graphical user interfaces.
Since:
2014.10.22
See Also:
  • Field Details

    • term

      protected JTextArea term
      the editor pane for the terminal text
    • max

      protected int max
      the maximum number of lines to display
  • Constructor Details

    • TerminalPanel

      public TerminalPanel(String title)
      Create a terminal panel.
      Parameters:
      title - the title of the terminal panel
      Since:
      2014.10.22 (Christian Borgelt)
    • TerminalPanel

      public TerminalPanel(String title, int maxlines)
      Create a terminal panel.
      Parameters:
      title - the title of the terminal panel
      maxlines - the maximum number of text lines
      Since:
      2014.10.22 (Christian Borgelt)
  • Method Details

    • getText

      public String getText()
      Get the text of the terminal panel.
      Returns:
      the text displayed in the terminal panel
      Since:
      2014.10.22 (Christian Borgelt)
    • setText

      public void setText(String text)
      Set text of the terminal panel.
      Parameters:
      text - the text to display in the terminal panel
      Since:
      2014.10.22 (Christian Borgelt)
    • append

      public void append(String text)
      Append text to the terminal panel.
      Parameters:
      text - the text to append to the text displayed
      Since:
      2014.10.22 (Christian Borgelt)
    • purge

      public void purge()
      Purge excess text from the terminal panel.
      Since:
      2014.10.27 (Christian Borgelt)