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



> I added this correction to make the value itself italic.
>
> jcb = new JComboBox(items);
> jcb.setFont( jcb.getFont().deriveFont( Font.ITALIC+Font.BOLD ) );
> jcb.setRenderer(new ItalicRenderer());

Thanks Roedy et al. But the actual problem is not so simple. In my
production cell renderer method, font setting varies depending on
a few conditions. And those variations do not come to the top item
at all. I think major books on Swing programming do not cover this
problem. How could it be solved? Thanks, again, in advance.

.