Enrique Dumas wrote: > So I changed the paint method in ScribbleOverlay to draw some text and > lines moving each time the mouse was clicked. > > It's slow and I'm afraid that I can not use this system in my app > because there are lots of things
Yes, the scribble demo hasn't been optimised yet. I'd like to have it drawing the line as you get the mouse event rather than after you release the button. Also, the clear() stuff is dodgy too. If you want to see some good performance, have a look at the the various mouse demos and the ImageButton which does the typically mouseOver image swapping. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".