Article View: borland.public.jbuilder.java.swing
Article #10236JComboBox--color of selection
From: Kevin Dwan
Date: Mon, 01 Nov 1999 00:00
Date: Mon, 01 Nov 1999 00:00
19 lines
1240 bytes
1240 bytes
I'm populating a JComboBox with an array of๏ฟฝ strings. (JB3) I've set Background Color to Light Gray, and the initial selection in the box appears gray. However, when the user changes to another selection, the new string displays (in my configuration) as a dark blue background. This color remains until the user puts focus somewhere outside the box. I'd like the string that displays in the box to always be the same color. Can someone suggest a way to do that? I'm not sure this is what I want to do, but is there also a way for the background of the scrollable list (array, actually) to not be white, but gray or some other color I specify, without having to write a Custom Renderer? Thx. ๏ฟฝ ๏ฟฝ
Technical Details
Message-ID:
<381D92CF.DB356BB8@blueberry.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,4dd336fbb83ddbd7,start X-Google-Attributes: gid111d45,public From: Kevin Dwan <kevin@blueberry.com> Subject: JComboBox--color of selection Date: 1999/11/01 Message-ID: <381D92CF.DB356BB8@blueberry.com> X-Deja-AN: 543239037 Content-Transfer-Encoding: 8bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=x-user-defined Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing