Class ListSelector

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ListSelector extends JPanel implements ActionListener
A composite component comprising a JList and associated controls used to add and remove list elements and to control their ordering.
See Also:
  • Constructor Details

    • ListSelector

      public ListSelector(Object[] listData)
      Instantiates a new list selector.
      Parameters:
      listData - the list data
  • Method Details

    • populate

      public void populate(Object[] listData)
      Populate.
      Parameters:
      listData - the list data
    • getValues

      public String[] getValues()
      Gets the values.
      Returns:
      the values
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener