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

Can't modify JComboBox pop-up

XMLWordPrintable

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



      Name: dbT83986 Date: 03/25/99


      What's the point of adding an Object to a JComboBox if
      the only thing that can ever get listed in the Jlist
      displayed by the pop-up is the result of the object's
      toString() method?

      If I add an awt Component, why is that Component not
      added to the JList, rather than the topString() of
      that Component?

      The doc for the setRenderer() method of JComboBox
      says it's for the *selected* item. Is this
      correct, or will the renenderer be used to render
      *all* itmes? I tried it, and it renders *all*
      the list items. Why doesn't the doc say this?

      Still, it would be much more useful if, when a
      Component were added to a JComboBox, the Component
      would get added to the popup, not the string.

      So, does this end up being a DOC error, or an
      RFE? I would prefer BOTH.
      (Review ID: 56089)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: