bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22896] an animated button class works with sun jdk but no


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22896] an animated button class works with sun jdk but not with classpath
Date: 16 Oct 2005 01:27:36 -0000

Hello all,
I've written a small class to have a Jdk-1.1 Awt-based animated button: when I
test it under sun Jdk it seems to work, but when I test it under a
classpath-dependent jvm (I've tried kaffe, sablevm and jamvm) the result it's
more ugly - it flickers.

I've attached both the class and a demo program, buttonFrame.java.

Any build switch I can use to have a smooth animation ?
Every feedback will be appreciated

TIA
/gp


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-03-23 
18:20 -------
The bug is in the Component implementation ImageObserver, which is triggering a
repaint() on the image loading when you do a drawImage() call. 

A temporary workaround would be to call drawImage() without giving it an
ImageObserver. 

E.g. Change: offGraphics.drawImage(pic[0], 0, 0, this); 
To:  offGraphics.drawImage(pic[0], 0, 0, null); 

In the meantime, I'll try and fix this


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22896





reply via email to

[Prev in Thread] Current Thread [Next in Thread]