Changing Arrows and Color of a JScrollBar inside of a JScrollPane
856147Apr 18 2011 — edited May 6 2011Hi. I can't believe this hasn't been asked and answered before but I can't find it in these forums if it has.
I am trying to create a JScrollPane in a touchscreen based application - no mouse... The default scrollbar
in my JScrollPane is too small for large fingers. I have successfully increased the size of the scrollbar
to a usable size using: UIManager.put("scrollbar.width", 75).
My next problem is two-fold.
1) The arrows at top and bottom of the scrollbar are now heavily pixelated (i.e. jagged and blocky) and
look like we zoomed in too much on a bitmap. How can I change these arrows to a graphic that is
more related to the current size of my scrollbar?
2) The color of the scrollbar is shades of 'baby blue'. My color scheme for my application is shades of
beige or brown. This makes the scrollbar stand out like a sore thumb. How can I change the color
of the scrollbar?
Note: This is being coded in NetBeans 6.7.1 but I can't find any property in the visual editor that covers
my problems.
Also, I came across the UIManager.put("scrollbar.width", xx) from googling. Is there an official (complete)
list of the properties available to the UIManager?
Thanks