Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JAWT on Java 1.3.1



email@hidden (Seth Tisue) wrote:

> Then in Java I wrote a loop that calls paint() over and over again,
> and does Toolkit.sync() after each call, just in case. So I should
> see a rectangle that constantly changes color. It works -- sort of!
> The rectangle only changes color as I move the mouse -- mouse stops,
> painting stops. I know from adding debugging output that my native
> code is still being called, it just doesn't paint anything onscreen
> until I move the mouse.

That's interesting. I've never done this but you might want to check
what the clipping region is in your C code. It might also be because the
VM tries to optimize the repaints and it doesn't think anything needs to
be repainted unless you move the mouse over the canvas. Try overriding
update(). Or maybe use the BeginUpdate/EndUpdate functions.

As you can see, I have no idea and I'm just throwing stuff at you. :)

Steve

--
Steve Roy <email@hidden>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >JAWT on Java 1.3.1 (From: Seth Tisue <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.