Hi Christopher,
While it could be quite a bit smarter, see the attached program. Maybe
I just have a faster machine, or maybe it's just using later JDKs ( 1.1.8
and 1.2.2. )
>The Swing version is bad because it doesnt (last time I checked)
>BitBlt, but rather repaints the whole thing.
May be time to check again. Meanwhile, I'd like to get back to 2D.
Joe Sam
Joe Sam Shirah
Autumn Software
What you don't know DOES hurt you...and your business
___________________________________________
-----Original Message-----
From: Volpe, Christopher R (CRD) <[EMAIL PROTECTED]>
To: 'Joe Sam Shirah' <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Friday, October 22, 1999 5:06 PM
Subject: RE: [JAVA2D] How can I get rid of flicker in ScrollPane
>> -----Original Message-----
>> From: Joe Sam Shirah [mailto:[EMAIL PROTECTED]]
>> Hi Hu,
>>
>>
>>
> > Flickering is almost always resolved by double buffering.
>
>Not really. ScrollPanes (at least, last year when I was trying to use them,
which I'm not anymore
>because I rolled my own out of frustration with the flickering) have a
nasty habit of clearing
>themselves if you scroll both horizontally and vertically at the same time,
which you can do
>programmatically, because the exposed region is a thin vertical rectangle
and a thin horizontal
>rectangle whose combined bounding box is the whole panel. The Swing version
is bad because it doesnt
>(last time I checked) BitBlt, but rather repaints the whole thing.
>
>> Swing
>> components are double buffered by default.
>>
>>
>>
>> Joe Sam
>>
>>
>>
>> Joe Sam Shirah
>> Autumn Software
>> What you don't know DOES hurt you...and your business
>> ___________________________________________
>>
>> -----Original Message-----
>> From: Hu Jia <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Date: Friday, October 22, 1999 3:58 AM
>> Subject: [JAVA2D] How can I get rid of flicker in ScrollPane
>>
>>
>> >Hi,guys:
>> > Here I got a problem:How can I get rid of the flicker in
>> ScrollPane when
>> >drag the scrollbar to view a entire image showing in the
>> ScrollPane?Thanks!
>> > Hu Jia
>> >
scrlimg.java