Article View: borland.public.jbuilder.java.swing
Article #10068Re: L&F primary colors
From: Zippy
Date: Sat, 13 Nov 1999 00:00
Date: Sat, 13 Nov 1999 00:00
30 lines
1713 bytes
1713 bytes
UIManager.put("ScrollBar.thumb",Color.red);
tested, works
Try using JScroll components - A lot of JBuilder components
have the there own L&F
>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
Technical Details
Message-ID:
<382d98aa.5058843@news.pangea.ca>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: Zippy@Pangea.ca (Zippy) Subject: Re: L&F primary colors Date: 1999/11/13 Message-ID: <382d98aa.5058843@news.pangea.ca> X-Deja-AN: 548189035 Content-Transfer-Encoding: 7bit References: <8098vf$j5511@forums.borland.com> <MPG.1292c577dd779fb59896a4@forums.borland.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pangea.ca X-Trace: pumpkin.pangea.ca 942516406 9584 207.161.110.55 (13 Nov 1999 18:06:46 GMT) Organization: Oats Mime-Version: 1.0 Reply-To: Zippy@Pangea.ca NNTP-Posting-Date: 13 Nov 1999 18:06:46 GMT Newsgroups: borland.public.jbuilder.java.swing