package devopsdistilled.operp.client.items.panes;

import javax.swing.JComponent;
import javax.swing.JPanel;

import devopsdistilled.operp.client.abstracts.SubTaskPane;
import devopsdistilled.operp.client.items.panes.models.observers.ListProductPaneModelObserver;

public class ListProductPane extends SubTaskPane implements
		ListProductPaneModelObserver {

	private final JPanel pane;

	public ListProductPane() {
		pane = new JPanel();
	}

	@Override
	public JComponent getPane() {
		return pane;
	}

}

@@ -59,445 +59,1918 @@
 java
-x.swing.JComponent;%0Aimport javax.swing.JPanel;%0A%0Aimport devopsdistilled.operp.client.abstracts.SubTaskPane;%0Aimport devopsdistilled.operp.client.items.panes.models.observers.ListProductPaneModelObserver;%0A%0Apublic class ListProductPane extends SubTaskPane implements%0A%09%09ListProductPaneModelObserver %7B%0A%0A%09private final JPanel pane;%0A%0A%09public ListProductPane() %7B%0A%09%09pane = new JPanel();%0A%09%7D%0A%0A%09@Override%0A%09public JComponent getPane() %7B%0A%09%09return pane;
+.awt.event.MouseAdapter;%0Aimport java.awt.event.MouseEvent;%0Aimport java.util.List;%0A%0Aimport javax.inject.Inject;%0Aimport javax.swing.JComponent;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.JTable;%0Aimport javax.swing.ListSelectionModel;%0Aimport javax.swing.SwingUtilities;%0A%0Aimport net.miginfocom.swing.MigLayout;%0Aimport devopsdistilled.operp.client.abstracts.SubTaskPane;%0Aimport devopsdistilled.operp.client.abstracts.libs.BeanTableModel;%0Aimport devopsdistilled.operp.client.items.models.observers.ProductModelObserver;%0Aimport devopsdistilled.operp.client.items.panes.details.ProductDetailsPane;%0Aimport devopsdistilled.operp.client.items.panes.models.observers.ListProductPaneModelObserver;%0Aimport devopsdistilled.operp.server.data.entity.items.Product;%0A%0Apublic class ListProductPane extends SubTaskPane implements%0A%09%09ListProductPaneModelObserver, ProductModelObserver %7B%0A%0A%09@Inject%0A%09private ProductDetailsPane productDetailsPane;%0A%0A%09private final JPanel pane;%0A%0A%09private final JTable table;%0A%09BeanTableModel%3CProduct%3E tableModel;%0A%0A%09public ListProductPane() %7B%0A%09%09pane = new JPanel(new MigLayout(%22fill%22));%0A%0A%09%09table = new JTable();%0A%09%09table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);%0A%09%09table.addMouseListener(new MouseAdapter() %7B%0A%09%09%09@Override%0A%09%09%09public void mousePressed(MouseEvent e) %7B%0A%09%09%09%09if (SwingUtilities.isLeftMouseButton(e)%0A%09%09%09%09%09%09&& e.getClickCount() == 2%0A%09%09%09%09%09%09&& table.getSelectedRow() != -1) %7B%0A%0A%09%09%09%09%09Product product = tableModel.getRow(table.getSelectedRow());%0A%0A%09%09%09%09%09productDetailsPane.show(product);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09final JScrollPane scrollPane = new JScrollPane(table,%0A%09%09%09%09JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,%0A%09%09%09%09JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);%0A%0A%09%09pane.add(scrollPane, %22grow%22);%0A%09%7D%0A%0A%09@Override%0A%09public JComponent getPane() %7B%0A%09%09return pane;%0A%09%7D%0A%0A%09@Override%0A%09public void updateProducts(List%3CProduct%3E products) %7B%0A%09%09// TODO Auto-generated method stub%0A
 %0A%09%7D%0A

Create basic UI