Article View: borland.public.jbuilder.java.swing
Article #10140Re: L&F primary colors
From: Ronen
Date: Wed, 10 Nov 1999 00:00
Date: Wed, 10 Nov 1999 00:00
34 lines
1676 bytes
1676 bytes
It doesn't seem to work, I did exactly what you have suggested. John P. McGrath <mcgrath@enter.net> wrote in message news:MPG.1292c577dd779fb59896a4@forums.borland.com... > On Tue, 9 Nov 1999 15:52:49 +0200, Ronen wrote: > > > I'm using MetalLookAndFeel > > Does anyone knows how can I change the primary colors > > (ScrollBars, Selected items background, splitters, etc..) > > I think you can do this using the UIDefaults class. I have not tried it, > but I think it goes something like this: > > UIDefaults defaults = UIManager.getDefaults(); > defaults.put( "ScrollBar.shadow", Color.blue ); > > As far as I can tell, the names of the properties used by the various > Swing look-and-feel classes is not documented, but they are easy to find > by looking at the source code. For example, MetalScrollBarUI uses the > following properties for its colors: > > ScrollBar.shadow > ScrollBar.highlight > ScrollBar.darkShadow > ScrollBar.thumb > ScrollBar.thumbShadow > ScrollBar.thumbHighlight > > -- > John P. McGrath > <mcgrath@enter.net> > <jpm@nscs.fast.net>
Technical Details
Message-ID:
<80cnmp$k3i7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8098vf$j5511@forums.borland.com> <MPG.1292c577dd779fb59896a4@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8535edc2c8bfaefe X-Google-Attributes: gid111d45,public From: "Ronen" <ronenm@netvision.net.il> Subject: Re: L&F primary colors Date: 1999/11/10 Message-ID: <80cnmp$k3i7@forums.borland.com> X-Deja-AN: 547060346 References: <8098vf$j5511@forums.borland.com> <MPG.1292c577dd779fb59896a4@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing