java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JTextArea

public class JTextAreaextends Component
Emulation of javax.swing.JTextArea for the NDT (Network Diagnostic Tool) plugin.

This class provides a functional text area component that captures text output from the NDT tool and logs it to the I2P logging system. Unlike other components in this package, JTextArea provides actual functionality by storing text content and forwarding it to the I2P logger.

This allows NDT test results and status messages to be captured and logged even in headless environments without requiring an actual graphical display.

  • Field Details

    • _log

      private final Log _log
      Logger for this class.
    • text

      private final StringBuilder text
      The text held by the area.
  • Constructor Details

    • JTextArea

      public JTextArea(String str, int a, int b)
      Append the initial text to the log at construction.
      Parameters:
      str - the initial text
      a - ignored, present only to match the JTextArea constructor signature
      b - ignored, present only to match the JTextArea constructor signature
  • Method Details

    • append

      public void append(String str)
      Log the text at WARN and append it to the accumulated text.
      Parameters:
      str - the text to append
    • getText

      public String getText()
      Read everything appended so far.
      Returns:
      the accumulated text
    • selectAll

      public void selectAll()
      no-op