package devopsdistilled.operp.client.items;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import devopsdistilled.operp.client.abstracts.SubTaskPane;

public class ListItemPane extends SubTaskPane implements ListItemModelObserver {

	private final ListItemPaneController controller;
	private final ListItemModel model;

	private JPanel pane;
	private JTable table;
	private ItemTableModel tableModel;

	public ListItemPane(ListItemPaneController controller, ListItemModel model) {
		this.controller = controller;

		this.model = model;
		model.registerObserver(this);
	}

	/**
	 * @wbp.parser.entryPoint
	 */
	public void init() {

		tableModel = new ItemTableModel();
		table = new JTable(tableModel);
		final JScrollPane scrollPane = new JScrollPane(table,
				JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
				JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

		pane = new JPanel(new BorderLayout());
		pane.setBorder(BorderFactory.createEmptyBorder());

		pane.add(scrollPane);

		controller.loadData();
	}

	@Override
	public void updateAll() {
		// TODO Auto-generated method stub

	}

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

	@Override
	public void updateItemList() {
		tableModel.setItems(model.getItems());
	}

}

@@ -42,73 +42,8 @@
 s;%0A%0A
-import java.awt.BorderLayout;%0A%0Aimport javax.swing.BorderFactory;%0A
 impo
@@ -156,16 +156,55 @@
 Table;%0A%0A
+import net.miginfocom.swing.MigLayout;%0A
 import d
@@ -734,16 +734,67 @@
 init() %7B
+%0A%09%09pane = new JPanel(new MigLayout(%22debug, fill%22));
 %0A%0A%09%09tabl
@@ -858,16 +858,17 @@
 Model);%0A
+%0A
 %09%09final 
@@ -1015,103 +1015,8 @@
 );%0A%0A
-%09%09pane = new JPanel(new BorderLayout());%0A%09%09pane.setBorder(BorderFactory.createEmptyBorder());%0A%0A
 %09%09pa
@@ -1032,16 +1032,24 @@
 rollPane
+, %22grow%22
 );%0A%0A%09%09co

Use MigLayout instead of BorderLayout