move jframe definition out of main()