🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #102

How to color the list under JComboBox?

#102
From: Daniel Mark
Date: Wed, 25 Jan 2006 15:57
16 lines
1147 bytes
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: <43d79f4c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,42a18dc417d096ca,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Daniel Mark" <daneilmarkhot@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: How to color the list under JComboBox?
Date: Wed, 25 Jan 2006 09:57:58 -0600
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 69.5.132.70
Message-ID: <43d79f4c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138204492 69.5.132.70 (25 Jan 2006 07:54:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail