package devopsdistilled.operp.client.party;

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.JPanel;

import net.miginfocom.swing.MigLayout;
import devopsdistilled.operp.client.abstracts.TaskPane;
import devopsdistilled.operp.client.party.controllers.VendorController;

public class PartyMgmtPane extends TaskPane {

	@Inject
	private VendorController vendorController;

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

	/**
	 * @wbp.parser.entryPoint
	 */
	@Override
	public JComponent getPane() {
		JPanel panel = new JPanel();
		panel.setLayout(new MigLayout("", "[]", "[]"));

		JButton btnCreateVendor = new JButton("Create Vendor");
		btnCreateVendor.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				vendorController.create();
			}
		});
		panel.add(btnCreateVendor, "cell 0 0");
		return panel;
	}

}

@@ -720,16 +720,20 @@
 (%22%22, %22%5B%5D
+%5B%5D%5B%5D
 %22, %22%5B%5D%22)
@@ -997,16 +997,273 @@
 l 0 0%22);
+%0A%0A%09%09JButton btnListVendors = new JButton(%22List Vendors%22);%0A%09%09btnListVendors.addActionListener(new ActionListener() %7B%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09vendorController.list();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09panel.add(btnListVendors, %22cell 2 0%22);
 %0A%09%09retur

Add "List Vendors" func