public class ResultsTextPaneextends JTextPane
Text pane component used as the chief results window that summarizes test results. This class is declared separately to allow easy extension for customization.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Compiler auto-generate value not directly related to class functionality.
      See Also:
  • Constructor Details

    • ResultsTextPane

      public ResultsTextPane()
      The pane starts empty; text arrives through append(String) and insert(), so nothing is configured at construction.
  • Method Details

    • append

      public void append(String paramTextStr)
      Method to append String into the current document.
      Parameters:
      paramTextStr - String to be inserted into the document
    • insertComponent

      public void insertComponent(Component paramCompObj)
      JTextPane method to insert a component into the document as a replacement for currently selected content. If no selection is made, the the component is inserted at the current position of the caret.
      Overrides:
      insertComponent in class JTextPane
      Parameters:
      paramCompObj - the component to insert