Article View: borland.public.jbuilder.java.swing
Article #8223Re: Custom Scroll Bars!
From: John McGrath TeamB
Date: Mon, 16 Oct 2000 00:00
Date: Mon, 16 Oct 2000 00:00
39 lines
1950 bytes
1950 bytes
On Sat, 14 Oct 2000 09:22:48 +0100, Dachande wrote:
> Joi Ellis <joi@joi.aravox.com> wrote:
>
> > Dachande <dachande_1@hotmail.com> wrote:
>
> > > Can anyone explain to me how to make custom scroll bars?
>
> > Could you elaborate a bit? This is such a large topic
> > I don't think anyone knows where to begin.
> well the concept is quite simple. Take the windows default
> scroll bar for example, light gray background and dark grey
> bar and pointers. Now imagine an application that has a
> horrible red background with puffy yellow writing. Grey
> scroll bars do not work.
It sounds like you are talking about customizing the _appearance_ of the
scrollbar, and not other aspects such as the scroll increments, keyboard
mappings, mouse handling, etc.
But even that is not quite specific enough to give you a good answer.
What component are you using? An AWT ScrollBar or ScrollPane? A Swing
JScrollBar or JScrollPane?
It would also help if you were more specific about which aspects of the
scrollbar you would like to customize. You will find that there are
properties that you can set for some aspects, but for others such as
placing a background image on the scrollbar, you may have to dig a little
deeper.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.145483c21e383a23989c21@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39e75f7e_1@dnews> <8s869v$ene8@bornews.borland.com> <39e814bd_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 From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: Custom Scroll Bars! Date: 2000/10/16 Message-ID: <MPG.145483c21e383a23989c21@forums.borland.com> X-Deja-AN: 681973020 References: <39e75f7e_1@dnews> <8s869v$ene8@bornews.borland.com> <39e814bd_1@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing