L
Lee Davidson
Simple task: use Scrollbars for red, green, and blue color components.
My red scrollbar should be W pixels wide, horizonal, min = 0, max =
255, visible = 1, and all that.
I thought the constructor call would be Scrollbar( style, value,
visible, min, max ); When I try
sb = new Scrollbar( Scrollbar.HORIZONTAL, 0, 1, 0 255 );
I get a trivial scrollbar of almost no length, and, anyway, I don't
see any control for the pixel width of the thing.
My Sun documentation shows a picture of a Scrollbar
ranger = new Scrollbar(Scrollbar.HORIZONTAL, 0, 60, 0, 300);
and it looks reasonable. But when I put in this exact code I only get
a trivial Scrollbar like before.
What, exactly, am I missing here? This simply cannot be this
difficult.
So, what am I missing here?
My red scrollbar should be W pixels wide, horizonal, min = 0, max =
255, visible = 1, and all that.
I thought the constructor call would be Scrollbar( style, value,
visible, min, max ); When I try
sb = new Scrollbar( Scrollbar.HORIZONTAL, 0, 1, 0 255 );
I get a trivial scrollbar of almost no length, and, anyway, I don't
see any control for the pixel width of the thing.
My Sun documentation shows a picture of a Scrollbar
ranger = new Scrollbar(Scrollbar.HORIZONTAL, 0, 60, 0, 300);
and it looks reasonable. But when I put in this exact code I only get
a trivial Scrollbar like before.
What, exactly, am I missing here? This simply cannot be this
difficult.
So, what am I missing here?