JFrame 의 하위 클래스인 MyFrame
class MyFrame extends JFrame { }
MyFrame은 JFrame을 상속받았기 때문에 JFrame의 모든 메소드와 필드에 접근할 수 있습니다. 따라서 setSize(), setTitle(), setLocation(), setVisible() 등의 메소드를 MyFrame 클래스 내에서 객체 이름 없이 직접 호출할 수 있습니다.
JFrame.EXIT_ON_CLOSE도 아니다.