Re: JComboBox cell renderer doesn't render the top item
- From: "hiwa" <HGA03630@xxxxxxxxxxx>
- Date: 24 Nov 2005 11:09:52 -0800
> 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.
.
- Follow-Ups:
- Re: JComboBox cell renderer doesn't render the top item
- From: jonck
- Re: JComboBox cell renderer doesn't render the top item
- From: Roedy Green
- Re: JComboBox cell renderer doesn't render the top item
- References:
- JComboBox cell renderer doesn't render the top item
- From: hiwa
- Re: JComboBox cell renderer doesn't render the top item
- From: Roedy Green
- JComboBox cell renderer doesn't render the top item
- Prev by Date: Re: mouseDragged() sensitivity?
- Next by Date: Re: JComboBox cell renderer doesn't render the top item
- Previous by thread: Re: JComboBox cell renderer doesn't render the top item
- Next by thread: Re: JComboBox cell renderer doesn't render the top item
- Index(es):