package devopsdistilled.operp.client.stock;

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

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

import net.miginfocom.swing.MigLayout;

import javax.swing.JTextField;

import devopsdistilled.operp.client.abstracts.SubTaskPane;

import javax.swing.JComboBox;
import javax.swing.JButton;

public class WareHousePane extends SubTaskPane{
	private JPanel pane;
	private JTextField textField;
	private JTextField textField_1;
		
	
	
	
	/**
	 * @wbp.parser.entryPoint
	 */
	@Override
	public void init() {
		pane=new JPanel();
		pane.setLayout(new MigLayout("", "[][grow]", "[][][][][]"));
		
		JLabel lblWarehouseId = new JLabel("WareHouse Id");
		pane.add(lblWarehouseId, "cell 0 0");
		
		JLabel lblWarehouseName = new JLabel("WareHouse Name");
		pane.add(lblWarehouseName, "cell 0 1,alignx trailing");
		
		textField = new JTextField();
		pane.add(textField, "cell 1 1,growx");
		textField.setColumns(10);
		
		JLabel lblLocation = new JLabel("Location");
		pane.add(lblLocation, "cell 0 2,alignx trailing");
		
		textField_1 = new JTextField();
		pane.add(textField_1, "cell 1 2,growx");
		textField_1.setColumns(10);
		
		JLabel label = new JLabel("District");
		pane.add(label, "cell 0 3,alignx trailing");
		
		JComboBox comboBox = new JComboBox();
		pane.add(comboBox, "cell 1 3,growx");
		
		JButton btnCancel = new JButton("Cancel");
		btnCancel.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				getDialog().setVisible(false);
			}
		});
		pane.add(btnCancel, "flowx,split 2,cell 1 4");
		
		JButton btnSave = new JButton("Save");
		pane.add(btnSave, "cell 1 4");
		
	}
	@Override	
	public JComponent getPane() {
		return pane;
	
	}
}

@@ -1228,176 +1228,11 @@
 %09%0A%09%09
-JLabel label = new JLabel(%22District%22);%0A%09%09pane.add(label, %22cell 0 3,alignx trailing%22);%0A%09%09%0A%09%09JComboBox comboBox = new JComboBox();%0A%09%09pane.add(comboBox, %22cell 1 3,growx%22);
+%0A%09%09
 %0A%09%09%0A
@@ -1476,25 +1476,25 @@
 it 2,cell 1 
-4
+3
 %22);%0A%09%09%0A%09%09JBu
@@ -1561,9 +1561,9 @@
 l 1 
-4
+3
 %22);%0A

remove location and district field from warehouse