Package weka.gui

Class ListSelectorDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ListSelectorDialog extends JDialog
A dialog to present the user with a list of items, that the user can make a selection from, or cancel the selection.
Version:
$Revision: 14494 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Field Details

    • APPROVE_OPTION

      public static final int APPROVE_OPTION
      Signifies an OK property selection
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      Signifies a cancelled property selection
      See Also:
  • Constructor Details

    • ListSelectorDialog

      public ListSelectorDialog(Window parentFrame, JList userList)
      Create the list selection dialog.
      Parameters:
      parentFrame - the parent window of the dialog
      userList - the JList component the user will select from
  • Method Details

    • showDialog

      public int showDialog()
      Pops up the modal dialog and waits for cancel or a selection.
      Returns:
      either APPROVE_OPTION, or CANCEL_OPTION
    • main

      public static void main(String[] args)
      Tests out the list selector from the command line.
      Parameters:
      args - ignored