import javax.swing.JButton; import javax.swing.JFrame; import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.ActionListener; public class MyFrame { public class MyFrame extends JFrame implements ActionListener { private JButton addData = new JButton ("add Data"); private JButton writeData = new JButton ("write data"); private JButton sort = new JButton ("sort"); private JButton printList = new JButton ("printList"); private JButton writeToFile = new JButton ("write to file"); private JButton deleteData = new JButton ("Delete data"); private JButton Exit = new JButton ("Exit"); } }