Can Comboboxes show multiple columns - TechRepublic
General discussion
February 14, 2002 at 04:09 PM
shepps

Can Comboboxes show multiple columns

by shepps . Updated 24 years, 4 months ago

Hello,

I find comboboxes with multiple columns extremely useful. One might be using the combobox to store, say, an ID for some Product, but you want to show its name and other attributes in the combobox.

However, I have no idea how to implement this in Swing. Sure you have to implement some sort of ComboBoxModel, but how would you render more than one column?

If anyone has done this or seen it before I would appreciate it if they could tell me what the best line of approach is.

Thanks

Philip Sheppard

This discussion is locked

All Comments