Article View: borland.public.jbuilder.java.swing
Article #8008Re: Custom Scroll Bars!
From: John McGrath TeamB
Date: Tue, 07 Nov 2000 07:46
Date: Tue, 07 Nov 2000 07:46
23 lines
1724 bytes
1724 bytes
On Sun, 5 Nov 2000 13:01:09 -0000, Dachande wrote:
> If nothing else I would like to change the colours of the
> scroll bars (all parts if possible ie the background the
> arrows and the scroller). It would then be nice to know
> how to place images on teh scroll bar, but I can make to
> with colour changes if this is not possible.
You can very easily set the background color for a scrollbar using
the setBackground() method. To change the appearance of the arrows
and the scroller or to draw an image on the scroll bar, you will need
to write your own code to paint the scroll bar.
The best way to do this is to create your own UI delegate class and
override the paint method.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.147177a582dde4f5989cda@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<39e75f7e_1@dnews> <8s869v$ene8@bornews.borland.com> <39e814bd_1@dnews> <MPG.145483c21e383a23989c21@forums.borland.com> <3a05489c_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,27048a2717d3ed48 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-11-06 23:47:51 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Custom Scroll Bars! Date: Tue, 7 Nov 2000 02:46:21 -0500 Organization: Another Netscape Collabra Server User Lines: 24 Message-ID: <MPG.147177a582dde4f5989cda@forums.borland.com> References: <39e75f7e_1@dnews> <8s869v$ene8@bornews.borland.com> <39e814bd_1@dnews> <MPG.145483c21e383a23989c21@forums.borland.com> <3a05489c_1@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30