jQuery in Action, 3rd edition
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
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: http://www.javaranch.com/codebarn.jsp
I agree. Here's the link: http://aspose.com/file-tools
subject: about repaint()
It's not a secret anymore!