Paul Lutus said:
FISH said:
Paul Lutus said:
Chris Uppal wrote: [snipped...]
The OP didn't post any source code. Posting source code is essential to
making any progress. I said so.
The conclusion being that he doesn't know where to begin.
This is comp.lang.java.programmer, not comp.lang.java.help.
That would be clj.programmer, not clj.bugfix? Aha - just checking,
For a moment there I thought thought I had mistakenly slipped into
a group for Java programmers...
In any event, in
both groups posting code is how you get the ball rolling.
Fair enough. Here is my first attempt at a solution, please fix.
public class ImageScrollBarThumb
{
}
Please note: if you think my first attempt sucks, please demonstrate
your contempt through the medium of source code. This is, after all,
clj.programmer, not clj.help ;-)
We cannot offer pointers without something to point at. This is, after all,
about computer programming, not philosophy.
He wants to put an image on the scrollbar thumb. That's the problem.
He doesn't know where to begin. Can I presume from all this pedantic
prevarication that you don't either...?
I was hoping that someone might know of an easy way to do this, as
the only solution I know of is rather advanced. As nobody has
ventured a simple solution I suppose it's time for me to point the
OP in the direction of the hard one. Basically, it requires the
creating of a new PLaF scrollbar. Although not as hard as it may at
first sound, there are lots of surrounding issues to do with Swing
which may trip you up if you aren't well versed in its mechanics.
Your best bet might be to see if there is a PLaF already out there
which serves your needs (not looked at the upcoming skinnable one
for 1.5/5.0 - perhaps that holds the answer?) Also, the O'Reilly
'Java Swing' book has an example of rolling your own scrollbars.
Check out chapter 26:-
http://examples.oreilly.com/jswing2/code/
There, that wasn't too hard. And I did all that without even a
single line of source to refer from. Gosh, how clever am I?
-FISH- ><>