-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
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)
======================================================================