animation with easier JFrame setup