JPanel class modified. Useless timer deleted.