package devopsdistilled.operp.client.account;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.inject.Inject;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;

import net.miginfocom.swing.MigLayout;
import devopsdistilled.operp.client.abstracts.TaskPane;
import devopsdistilled.operp.client.account.controllers.ReceivedTransactionController;

public class AccountMgmtPane extends TaskPane {

	@Inject
	private ReceivedTransactionController receivedTransactionController;

	@Override
	public String toString() {
		return new String("Account");
	}

	/**
	 * @wbp.parser.entryPoint
	 */
	@Override
	public JComponent getPane() {
		JPanel pane = new JPanel();
		pane.setLayout(new MigLayout("", "[136px,grow]", "[15px][][]"));
		pane.add(new JLabel("Account Management"),
				"cell 0 0 2097051 1,alignx center,aligny top");

		JButton btnReceivePayment = new JButton("Receive Payment");
		btnReceivePayment.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				receivedTransactionController.create();
			}
		});
		btnReceivePayment.setFont(new Font("DejaVu Sans", Font.PLAIN, 12));
		pane.add(btnReceivePayment, "cell 0 2");
		return pane;
	}

}

@@ -373,16 +373,99 @@
 skPane;%0A
+import devopsdistilled.operp.client.account.controllers.PaidTransactionController;%0A
 import d
@@ -673,16 +673,88 @@
 oller;%0A%0A
+%09@Inject%0A%09private PaidTransactionController paidTransactionController;%0A%0A
 %09@Overri
@@ -991,16 +991,20 @@
 5px%5D%5B%5D%5B%5D
+%5B%5D%5B%5D
 %22));%0A%09%09p
@@ -1062,18 +1062,8 @@
  0 0
- 2097051 1
 ,ali
@@ -1439,16 +1439,279 @@
 l 0 2%22);
+%0A%0A%09%09JButton btnPayPayment = new JButton(%22Pay Payment%22);%0A%09%09btnPayPayment.addActionListener(new ActionListener() %7B%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09paidTransactionController.create();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09pane.add(btnPayPayment, %22cell 0 4%22);
 %0A%09%09retur

Add "Pay Payment" & Impl