wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Scrollbar thumb color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Scrollbar thumb color" Watch "Scrollbar thumb color" New topic
Author

Scrollbar thumb color

damian cosmos
Ranch Hand

Joined: Dec 13, 2001
Posts: 32
Is it possible to change the color of the scrollbar thumb ?
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
Hi Damian,
Yes it is.


Here's a list of other properties you can alter:
ColorUIResource-----
ScrollBar.thumbLightShadow
ScrollBar.thumbDarkShadow
ScrollBar.highlight
ScrollBar.shadow
ScrollBar.foreground
ScrollBar.thumb
Integer----
ScrollBar.width
The thing to watch out for with these properties is that if you don't get the name right the code will compile and run but it won't have any effect....
You could write the contents of the UIDefaults to a file for future reference ( once you start playing with the colors you're not going to want to stop )

Hope that helps,
Terry


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
jQuery in Action, 2nd edition
 
subject: Scrollbar thumb color
 
Similar Threads
How To Show a Vertical Scrollbar Inside FIELDSET
Is this possible in JScrollPane?
Change the color of a JScrollBar
Change colour of Toolbar
Scrollbar Look