This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
2. The easiest way to do animation is to create and ImageIcon and add the Icon to a JLabel and add the JLabel to your panel. Then when you want to move the label you just invoke setLocation(...) on the label. There is no need for a custom class to keep track ofe the location.