Class JCheckBoxList<E>

Type Parameters:
E - the type of the elements of this list
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class JCheckBoxList<E>
extends JList<E>
A JList that renders elements using a JCheckBox.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • addCheckBoxListener

      public void addCheckBoxListener​(ActionListener listener)
      Adds a listener for when a check box is toggled in the list.
      Parameters:
      listener - the listener to add
    • removeCheckBoxListener

      public void removeCheckBoxListener​(ActionListener listener)
      Removes a listener.
      Parameters:
      listener - the listener to remove
    • getString

      public String getString​(E value)
      Converts a value to a String to display.
      Parameters:
      value - the value to convert, may bee null
      Returns:
      a String to display for the given value