程序包 weka.gui

类 ListSelectorDialog

所有已实现的接口:
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.
版本:
$Revision: 7899 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
另请参阅:
  • 字段详细资料

    • APPROVE_OPTION

      public static final int APPROVE_OPTION
      Signifies an OK property selection
      另请参阅:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      Signifies a cancelled property selection
      另请参阅:
  • 构造器详细资料

    • ListSelectorDialog

      public ListSelectorDialog(Frame parentFrame, JList userList)
      Create the list selection dialog.
      参数:
      parentFrame - the parent frame of the dialog
      userList - the JList component the user will select from
  • 方法详细资料

    • showDialog

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

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