You can use animated gifs... but I would test it out first because sometimes it doesn't look that great, depending on the gif. To use streaming video through Java, check out the JMF(Java Media Framework).
Write once, run anywhere, because there's nowhere to hide! - /. A.C.