package devopsdistilled.operp.client.abstracts;

import javax.swing.JComponent;
import javax.swing.JDialog;

import net.miginfocom.swing.MigLayout;

public abstract class SubTaskPane {
	protected JDialog dialog;

	public SubTaskPane() {
		dialog = new JDialog();
	}

	public abstract JComponent getPane();

	public void init() {
		dialog.getContentPane().setLayout(new MigLayout("debug, fill"));
		dialog.getContentPane().add(getPane(), "grow");
		dialog.setSize(400, 600);
		dialog.setVisible(true);

	}

	public JDialog getDialog() {
		return dialog;
	}

}

@@ -176,16 +176,45 @@
 askPane 
+implements PaneModelObserver 
 %7B%0A%09prote
@@ -579,10 +579,96 @@
 og;%0A%09%7D%0A%0A
+%09@Override%0A%09public void updateTitle(String title) %7B%0A%09%09getDialog().setTitle(title);%0A%09%7D%0A
 %7D%0A

Define updateTitle() from PaneModelObserver