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

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

This class provides a minimal stub implementation of a checkbox component to allow the NDT tool to run in headless environments. The checkbox maintains selection state but provides no actual visual representation.

All operations except selection state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.

  • Field Details

    • selected

      boolean selected
      True when the checkbox is checked; no visual component renders this state
  • Constructor Details

    • JCheckBox

      public JCheckBox(String str)
      Checkbox label.
      Parameters:
      str - the text shown beside the box
  • Method Details

    • setSelected

      public void setSelected(boolean b)
      Selection state.
      Parameters:
      b - true to mark the box as checked
    • isSelected

      public boolean isSelected()
      Selection state.
      Returns:
      true if the box is currently checked
    • addActionListener

      public void addActionListener(ActionListener l)
      Action listener.
      Parameters:
      l - action listener