This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes use my own image on the knob of a jslider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "use my own image on the knob of a jslider" Watch "use my own image on the knob of a jslider" New topic
Author

use my own image on the knob of a jslider

chris paredes
Greenhorn

Joined: May 07, 2001
Posts: 9
I want to use my own image for the knob of a jslider. Do I need to write my own look and feel? Or is there some way I can change the knob image. That's all I want to do. The jslider should do everything else the same. I just want to use my own image for the knob. Seems like that should be easy, right?
Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
To my opinion, you're right when you say you have to write your own look and feel for this component. The best to do may be to extend the ScrollBarUI of any look-and-feel and override the paint method. Then a simple call to the setUI method of JScrollBar should be sufficent.
W.
chris paredes
Greenhorn

Joined: May 07, 2001
Posts: 9
Has anyone used the skin look and feel (http://www.javootoo.com)? I got that working and downloaded a theme to work with this (http://www.themes.org), but I'm not sure about building my own theme. Anyone done this? Thanks, Chris
 
jQuery in Action, 3rd edition
 
subject: use my own image on the knob of a jslider
 
It's not a secret anymore!