Article View: borland.public.jbuilder.java.swing
Article #10904How to colour a JComboBox
From: Steve Horsley
Date: Thu, 05 Aug 1999 00:00
Date: Thu, 05 Aug 1999 00:00
10 lines
840 bytes
840 bytes
I have changed the colour of a JComboBox like this:
combo.setForeground(Color.white);
combo.setBackground(Color.blue);
It looks nice, but when I click it and the drop-down list appears,
the selection list is all still black on grey.
Does anyone know how to make the drop-down part coloured as well?
Steve.
Technical Details
Message-ID:
<37A9587A.E373BFCA@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,55ab3afbc54dff3e,start X-Google-Attributes: gid111d45,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: How to colour a JComboBox Date: 1999/08/05 Message-ID: <37A9587A.E373BFCA@cwcom.co.uk> X-Deja-AN: 509118289 Content-Transfer-Encoding: 7bit Organization: Cable & Wireless Communications X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing