File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "about repaint()" Watch "about repaint()" New topic

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
There are some examples in the Code Barn:
I agree. Here's the link:
subject: about repaint()
It's not a secret anymore!