I've a JCombobox with 7 elements, out wich 2 elements should be always displayed. Out remaining 5 elements only one element should be displayed (Based on various conditions). Thus at any given point of time only 3 elements should be visible/enabled to users. I know that i've to implement a ListCellRenderer, but my efforts (by rendering at JLablel) were not fruitful. Any pointers will help.
posted 10 years ago
From what you say, I don't see how a ListCellRenderer helps you. Perhaps a custom ComboBoxModel would help?