Short animation written in Java