aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use my own image on the knob of a jslider