@@ -0,0 +1,1218 @@
+package Project.java;%0A%0Aimport java.awt.Dimension;%0Aimport java.awt.FlowLayout;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Aimport javax.swing.DefaultListModel;%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JList;%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.JTextField;%0A%0Apublic class PayFrame extends JFrame implements ActionListener%7B%0A%09private JButton pay;%0A%09private JButton cancelOrder;%0A%09private JList%3CString%3E theOrder;%0A%09private JTextField total;%0A%09private JScrollPane listScroller;%0A%09%0A%09public PayFrame(String title, Object%5B%5D objects) %7B%0A%09%09super(title);%0A%09%09setSize(500,200);%0A%09%09setResizable(false);%0A%09%09setLayout(new FlowLayout());%0A%09%09%0A%09%09theOrder = new JList(objects);%0A%09%09add(theOrder);%0A%09%09theOrder.setLayoutOrientation(JList.VERTICAL);%0A%09%09theOrder.setVisibleRowCount(-1);%0A%09%09listScroller = new JScrollPane(theOrder);%0A%09%09listScroller.setPreferredSize(new Dimension(450, 80));%0A%09%09add(listScroller);%0A%09%09total = new JTextField();%0A%09%09total.setText(%22  %22);%0A%09%09add(total);%0A%09%09pay = new JButton(%22Pay%22);%0A%09%09add(pay);%0A%09%09cancelOrder = new JButton(%22Cancel%22);%0A%09%09add(cancelOrder);%0A%09%7D%0A%0A%09@Override%0A%09public void actionPerformed(ActionEvent e) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%09%0A%7D%0A

Create PayFrame.java