I've got a good one for you!

Ok, I don't think it's possible, but can a standard AWT scrollbar be made a different color? (i.e. changing the slider color to green or something) The only idea I had was to make a new type of scrollbar by extending from the Scrollbar class, but how could I change the color?

Any Ideas?

[316 byte] By [mwstein] at [2007-9-26 3:14:38]
# 1
I think the scrollbar bubble comes from your system colors (never have checked that however) so propably by changing your OS colors you can access it:
arcosh at 2007-6-29 11:25:09 > top of Java-index,Archived Forums,Java Programming...
# 2
That would work, but I need each scrollbar to be a different color, and possibly (in the future) have the colors be changed by the user in the application itself.
mwstein at 2007-6-29 11:25:09 > top of Java-index,Archived Forums,Java Programming...
# 3
I've never tried it, but I don't see why you couldn't. Scrollbar extends Component, and JScrollbar extends JComponent, and both of those classes have setBackground(Color c) and setForeground(Color c) methods.Rich
rmiller1985 at 2007-6-29 11:25:09 > top of Java-index,Archived Forums,Java Programming...
# 4
I tried that already...setForeground, setBackgroundDoesn't work.
mwstein at 2007-6-29 11:25:09 > top of Java-index,Archived Forums,Java Programming...