Remove JFrame for testing.