버튼 이벤트 이벤트리스너 를 추가하기 전에는 Button을 눌러도 아무 변화가 없지만, 리스너를 추가하고 다시 실행하면 글자가 바뀐다. class Listener1 implements ActionListener { public void actionPerformed(ActionEvent e) { JButton button = (JButton) e.getSource(); button.setText("버튼을 클릭하였습니다."); } } 이벤트 리스너 클래스 선언할 때, ActionListener 인터페이스를 구현하고, 내부의 추상메서드 actionPerformed(ActionEvent e) 를 작성했다. 이벤트가 발생하면, ActitonEvent e를 통해 발생한 이벤트 객체를 받아오고 JButton butt..