Learning basic animation - beginning java