I found this ebook online a while ago and have started reading through it.
Use google to look for a file called : Broadway.java Use the filetype:java in google to find it.
In this example animation is shown. The screen movement is flickery though.
Use google to look for a file called : Woogie.java. This is another example from the book that shows you how to do animation and drawing without flickering.
My back started hurting so I will take a break.