package devopsdistilled.operp.client.items;

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

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.ClientApp;
import devopsdistilled.operp.client.abstracts.TaskPane;

public final class ItemMgmtPane extends TaskPane {

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

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

		JLabel lblitemManagement = new JLabel("Item Management");
		pane.add(lblitemManagement, "cell 0 0");

		JButton btnNewItemButton = new JButton("New Item Button");
		btnNewItemButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				ItemPane itemPane = ClientApp.getApplicationContext().getBean(
						ItemPane.class);
				itemPane.init();
				itemPane.setOwner(getPane());
				itemPane.getDialog();
			}
		});
		pane.add(btnNewItemButton, "cell 0 1");

		return pane;
	}
}

@@ -1168,16 +1168,431 @@
 0 1%22);%0A%0A
+%09%09JButton btnListItems = new JButton(%22List Items%22);%0A%09%09btnListItems.addActionListener(new ActionListener() %7B%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09ListItemPane listItemPane = ClientApp.getApplicationContext()%0A%09%09%09%09%09%09.getBean(ListItemPane.class);%0A%09%09%09%09listItemPane.init();%0A%09%09%09%09listItemPane.setOwner(getPane());%0A%09%09%09%09listItemPane.getDialog();%0A%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09pane.add(btnListItems, %22cell 0 2%22);%0A%0A
 %09%09return

Add "List Items" Button