Re: JComboBox cell renderer doesn't render the top item



Hi,

> Below is an SSCCE for the problem. The renderer renders
> item text in the drop down list in italic font. But it doesn't render
> the top item of the box in italic. What could be the solution. T.I.A.


Just a guess: a JCombobox consists of a button, an editable field and a
drop-down list. You override the renderer for the list but not for the edit
field. Have a look at JComboBox.getEditor().

cu

René


.