added a JFrame for testing