Re: JComboBox cell renderer doesn't render the top item
- From: jonck@xxxxxxxxxxxxxxx
- Date: 24 Nov 2005 04:01:27 -0800
> 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.
.
- Follow-Ups:
- References:
- JComboBox cell renderer doesn't render the top item
- From: hiwa
- Re: JComboBox cell renderer doesn't render the top item
- From: Rene Ruppert
- JComboBox cell renderer doesn't render the top item
- Prev by Date: Re: JComboBox cell renderer doesn't render the top item
- 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):