package ch05; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; class MyFrame2 extends JFrame implements ActionListener { JButton button1; JButton button2; JButton button3; JButton button4; JButton button5; public MyFrame2() { initData(); setLayout(); addEventListener(); } private void initD..