Article View: borland.public.jbuilder.java.swing
Article #10266Re: UIManager properties
From: BARBET Alain
Date: Thu, 21 Oct 1999 00:00
Date: Thu, 21 Oct 1999 00:00
24 lines
1618 bytes
1618 bytes
BC a �crit :
> Where can I find a listing of UIManager default properties? For example,
> UIManager.put("Color", Color.red);
>
> I'd like to change the default JOptionPane color and font. The
> JOptionPane's setBackground() and setFont() methods do not change
> anything. I am wondering if I could change the UIManager default
> properties for JOptionPane explicitly.
>
> Thanks.
Usually I use this :
UIDefaults defaults = UIManager.getDefaults();
defaults.put("OptionPane.foreground", Color.white);
defaults.put("OptionPane.background", Color.white);
Hope that's help you ....
--
Alain BARBET
Ing�nieur R&D - Network Mapping Facilities
abarb@nmg.fr - http://www.citeweb.net/alian
Technical Details
Message-ID:
<380F38BC.C321E8FE@nmg.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<380F0F32.EE49E4B0@aol.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,79cf5fc72234d046 X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,79cf5fc72234d046 X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10a146,79cf5fc72234d046 X-Google-Attributes: gid10a146,public From: BARBET Alain <abarb@nmg.fr> Subject: Re: UIManager properties Date: 1999/10/21 Message-ID: <380F38BC.C321E8FE@nmg.fr> X-Deja-AN: 538891290 Content-Transfer-Encoding: 8bit References: <380F0F32.EE49E4B0@aol.com> To: BC <Bameco@aol.com> X-Accept-Language: fr Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@oleane.net X-Trace: minus.oleane.net 940521858 25459 195.25.3.9 (21 Oct 1999 16:04:18 GMT) Organization: Guest of OLEANE Mime-Version: 1.0 NNTP-Posting-Date: 21 Oct 1999 16:04:18 GMT Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui,comp.lang.java.programmer