Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4202084

JOptionPane.showInputDialog in multi-select mode when JList used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • client-libs
    • beta
    • generic
    • generic



      Name: diC59631 Date: 01/11/99


      When using a JOptionPane.showInputDialog(...) and specifying an array of options to choose from, if a large number of options is shown, a JList is used for input. Good idea, but the JList is in multi-selection mode AND the method only returns ONE selection, the first in the list.

      The UI piece needs to be corrected to either use single selection mode or return an array of selected items.

      Double click works fine, but I can select multiple elements, then select OK and that is where the problem lies.
      (Review ID: 48941)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: