• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change the color of the Knob, Track and buttons of a JScrollPane  RSS feed

 
Marvin Legend
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know any method to change the color of the Knob, Track and JScrollPane Buttons? In my layout components are gray, standard windows, I'd like to put the color I really wanted, but unfortunately have not found much about it.
Thanks a lot guys!
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't JScrollPane have methods to get the scroll bars? Doesn't JScrollBar have methods like setBackground, as just about every component has?
 
Marvin Legend
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Doesn't JScrollPane have methods to get the scroll bars? Doesn't JScrollBar have methods like setBackground, as just about every component has?


Yes it has, but they do not alter the Knob, track and buttons, I tried and failed to change the color, you know somehow? Can you give me some example my friend?
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could find this, but it appears not to work very well. I shall leave it to you to work out why it didn't work
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!