File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes about repaint() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about repaint()" Watch "about repaint()" New topic
Author

about repaint()

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
Could anyone give me an example on how to make a simple animation such as a moving rectangle by using repaint()?
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi David,
I'm going to move your post over to the Swing/JFC/AWT forum. Maybe someone has an example.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Peter Kristensson
Ranch Hand

Joined: Jul 02, 2001
Posts: 118
Hi.
There are some examples in the Code Barn: http://www.javaranch.com/codebarn.jsp
Enjoy
/Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about repaint()