Class TextHistoryPane

    • Constructor Detail

      • TextHistoryPane

        public TextHistoryPane()
        default constructor.
      • TextHistoryPane

        public TextHistoryPane​(boolean editable)
        constructor allows editing.
      • TextHistoryPane

        public TextHistoryPane​(boolean editable,
                               int nlines,
                               int removeIncr,
                               boolean popupOK,
                               boolean lineWrap,
                               int ptSize)
        constructor
        Parameters:
        nlines - number of lines of text to keep history of
        removeIncr - remove this number of lines at a time
        popupOK - enable popup menu
        ptSize - font point size
    • Method Detail

      • appendLine

        public void appendLine​(String line)
        Append this line to the bottom of the JTextArea. A newline is added and JTextArea is scrolled to bottom; remove lines at top if needed.
        Parameters:
        line - append this line. Ok to have multiple lines (ie embedded newlines) but not too many.
      • clear

        public void clear()
      • getText

        public String getText()
      • gotoTop

        public void gotoTop()
      • setText

        public void setText​(String text)
      • setTextFromStackTrace

        public void setTextFromStackTrace​(Throwable e)