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



> 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().

Actually the solution is even simpler, simply put this line:

jcb.setFont(jcb.getFont().deriveFont(Font.ITALIC));

after the line where you instantiate jcb and you're done.

.


Quantcast