private void checkoutForm(JPanel checkoutFormPanel)
	{
		checkoutFormPanel.setLayout(new BoxLayout(checkoutFormPanel, BoxLayout.PAGE_AXIS));
		
		JLabel required = new JLabel("All fields are required.");
			required.setVisible(false);
			required.setForeground(Color.RED);
		
			if (requiredFields>0)
			{
				required.setVisible(true);
			}
			
		JPanel buyerNamePanel = new JPanel();
			buyerNamePanel.setLayout(new BoxLayout(buyerNamePanel, BoxLayout.LINE_AXIS));
			
			JLabel buyerNameLabel = new JLabel("Name:");
			nameField = new JTextField();
			
			buyerNamePanel.add(buyerNameLabel);
			buyerNamePanel.add(nameField);
			
		JPanel buyerEmailPanel = new JPanel();
			buyerEmailPanel.setLayout(new BoxLayout(buyerEmailPanel, BoxLayout.LINE_AXIS));
			
			JLabel buyerEmailLabel = new JLabel("Email:");
			emailField = new JTextField();
			
			buyerEmailPanel.add(buyerEmailLabel);
			buyerEmailPanel.add(emailField);
			
		JPanel buyerPhonePanel = new JPanel();
			buyerPhonePanel.setLayout(new BoxLayout(buyerPhonePanel, BoxLayout.LINE_AXIS));
			
			JLabel buyerPhoneLabel = new JLabel("Phone #:");
			phoneField = new JTextField();
			
			buyerPhonePanel.add(buyerPhoneLabel);
			buyerPhonePanel.add(phoneField);
		
		JPanel buyerAddressPanel = new JPanel();
			buyerAddressPanel.setLayout(new BoxLayout(buyerAddressPanel, BoxLayout.LINE_AXIS));
			
			JLabel buyerAddressLabel = new JLabel("Shipping Address:");
			addressField = new JTextField();
			
			buyerAddressPanel.add(buyerAddressLabel);
			buyerAddressPanel.add(addressField);
			
		JPanel buyerCCPanel1 = new JPanel();
			buyerCCPanel1.setLayout(new BoxLayout(buyerCCPanel1, BoxLayout.LINE_AXIS));
			
			JLabel buyerCCNumLabel = new JLabel("Credit Card #:");
			ccNumField = new JTextField();
			
			buyerCCPanel1.add(buyerCCNumLabel);
			buyerCCPanel1.add(ccNumField);
			
		JPanel buyerCCPanel2 = new JPanel();
			buyerCCPanel2.setLayout(new BoxLayout(buyerCCPanel2, BoxLayout.LINE_AXIS));
			
			JLabel buyerCCDateLabel = new JLabel("Exp. Date:");
			ccDateField = new JTextField();
			
			JLabel buyerCCSecCodeLabel = new JLabel("Security Code:");
			ccSecCodeField = new JTextField();
			
			buyerCCPanel2.add(buyerCCDateLabel);
			buyerCCPanel2.add(ccDateField);
			buyerCCPanel2.add(buyerCCSecCodeLabel);
			buyerCCPanel2.add(ccSecCodeField);
			
		JPanel ipAddressPanel = new JPanel();
			ipAddressPanel.setLayout(new BoxLayout(ipAddressPanel, BoxLayout.LINE_AXIS));
			
			JLabel sellerIPAddressLabel = new JLabel("Seller IP Address");
			sellerIPAddressField = new JTextField();
			
			ipAddressPanel.add(sellerIPAddressLabel);
			ipAddressPanel.add(sellerIPAddressField);

		JPanel buttonPanel = new JPanel();
			buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));
		
		JButton checkout = new JButton("Checkout");
			checkout.addActionListener(new CheckoutButtonListener());
			
		JButton returnButton = new JButton("Return to Shopping");
			returnButton.addActionListener(new KeepShoppingButtonListener());
		
			buttonPanel.add(checkout);
			buttonPanel.add(returnButton);

		
		checkoutFormPanel.add(required);
		checkoutFormPanel.add(buyerNamePanel);
		checkoutFormPanel.add(buyerEmailPanel);
		checkoutFormPanel.add(buyerPhonePanel);
		checkoutFormPanel.add(buyerAddressPanel);
		checkoutFormPanel.add(buyerCCPanel1);
		checkoutFormPanel.add(buyerCCPanel2);
		checkoutFormPanel.add(ipAddressPanel);
		checkoutFormPanel.add(buttonPanel);
	}