Autocomplete JComboBox with non-string objects
I am attempting to enable autocomplete on a JComboBox that is populated
with domain objects (i.e. not strings).
At the moment I am attempting to build a custom AbstractComponentAdaptor
but I'm running into various hassles.
Am I missing something obvious?
The autocomplete code seems to assume that toString() on the model
produces the required display string, which is only true for a small
number of my combobox data objects.
NOTICE: Please note that this email, and the contents thereof,
are subject to the standard Peralex email disclaimer, which may
be found at: http://www.peralex.com/disclaimer.html
If you cannot access the disclaimer through the URL attached
and you wish to receive a copy thereof please send
an email to firstname.lastname@example.org