... java. awt.event).•Chương trình có thể xử lý các sự kiện bằng cách đặt “lắng nghe sự kiện” trên các thành phần GUI.18VÍ DỤ 4 (file CheckBoxDemo .java) -ttVÍ DỤ 4 (file CheckBoxDemo .java) -ttpublic ... sumButton.addActionListener(this);//xem tiếp ở slide tiếp theo14VÍ DỤ 3 (AddOperator .java) - ttVÍ DỤ 3 (AddOperator .java) - ttexitButton.setBounds(200,150,50,30);this.add(exitButton);exitButton.addActionListener(this);firstLabel.setBounds(50,50,130,30);this.add(firstLabel);secondLabel.setBounds(50,80,130,30);this.add(secondLabel);resultLabel.setBounds(50,110,130,30);this.add(resultLabel);firstTextField.setBounds(190,50,80,25);this.add(firstTextField);secondTextField.setBounds(190,80,80,25);this.add(secondTextField);resultTextField.setBounds(190,110,80,25);this.add(resultTextField);this.addWindowListener(new ... Index)void replaceRange(String S, int begin, int end)15VÍ DỤ 3 (AddOperator .java) - ttVÍ DỤ 3 (AddOperator .java) - ttpublic void actionPerformed(ActionEvent evt){ if(evt.getSource()==sumButton){...