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



On 24 Nov 2005 11:09:52 -0800, "hiwa" <HGA03630@xxxxxxxxxxx> wrote,
quoted or indirectly quoted someone who said :

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

Try examining the code for JComboBox and the classes it uses in
src.zip. Once you see how it works, solutions are much easier to
generate.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: panel-color question..
    ... >a developer where I work said to me that even if I'm running 1.4.2 on ... >both machines, still JRE's will be different if this in two diff OS's ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.gui)
  • Re: converting string to a number..
    ... There is an applet that displays a fragment of a java program. ... or you can click download to grab the whole thing. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.help)
  • Re: Version history
    ... some poeple might find it handy. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.programmer)
  • Re: converting string to a number..
    ... I put from String to Integer, ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.help)
  • Re: Differences between C++ and Java
    ... He asked for feedback ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.programmer)