Article View: borland.public.jbuilder.java.swing
Article #103Re: How to color the list under JComboBox?
From: Doychin Bondzhev
Date: Wed, 25 Jan 2006 16:06
Date: Wed, 25 Jan 2006 16:06
23 lines
1310 bytes
1310 bytes
You should assign custom item renderer that will display list items in different colors. Doychin Daniel Mark wrote: > Hello all: > > Is there anyway I could color the text in list under JComboBox? > > For example: > JComboBox has three items > > Item1 > Item2 > Item3 > > I would like to display Item1 as red, item2 as blue and item3 as green. > > > thank you > -Daniel > >
Technical Details
Message-ID:
<43d7a165$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43d79f4c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,42a18dc417d096ca X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 25 Jan 2006 18:06:54 +0200 From: Doychin Bondzhev <doychin@dsoft-bg.com> User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: How to color the list under JComboBox? References: <43d79f4c@newsgroups.borland.com> In-Reply-To: <43d79f4c@newsgroups.borland.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.10.246.225 Message-ID: <43d7a165$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138205029 217.10.246.225 (25 Jan 2006 08:03:49 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail