main setup for jframe