/**
 * Package contains all the views required by budgetreporter
 */
package com.budgetreporter.View;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 * @author jacky
 *
 */
public class MenuView extends JPanel{
	
	public MenuView(){
		super();
		initUI();
	}
	
	public void initUI(){
		GridLayout gLayout = new GridLayout(0,1);
		this.setLayout(gLayout);
        
        //Add the "View Report" button
        JButton viewReportButton = new JButton("View Report");

        //Add the "New Expense" button
        JButton newExpenseButton = new JButton("New Expense");
        
        //Add the "New Income" button
        JButton newIncomeButton = new JButton("New Income");
        
        //Add the "Profile" button
        JButton profileButton = new JButton("Profile");

        //Add the "Quit" button
        JButton quitButton = new JButton("Quit");

        this.add(profileButton);
        this.add(viewReportButton);
        this.add(newExpenseButton);
        this.add(newIncomeButton);
        this.add(quitButton);
        
        System.out.println("Menu page created");		
	}

}

@@ -180,16 +180,89 @@
 dLayout;
+%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;
 %0A%0Aimport
@@ -1160,24 +1160,88 @@
 ton(%22Quit%22);
+%0A        quitButton.addActionListener(new QuitButtonListener());
 %0A%0A        th
@@ -1464,10 +1464,161 @@
 ;%09%09%0A%09%7D%0A%0A
-%7D
+%09private class QuitButtonListener implements ActionListener%7B%0A%09%09@Override%0A%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09    System.exit(0);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A
 %0A

Add quit button functionality in menuView