changed JFrame format to use JPanel + paint()