package devopsdistilled.operp.client.stock;

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

import net.miginfocom.swing.MigLayout;
import devopsdistilled.operp.client.abstracts.SubTaskPane;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;

public class StockPane 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("", "[]25[grow]", "[][][][][]"));
		
		JLabel lblItemName = new JLabel("Item Name");
		pane.add(lblItemName, "cell 0 0,alignx trailing");
		
		JComboBox comboBox = new JComboBox();
		pane.add(comboBox, "cell 1 0,growx");
		
		JLabel lblWarehouseName = new JLabel("Warehouse Name");
		pane.add(lblWarehouseName, "cell 0 1,alignx trailing");
		
		JComboBox comboBox_1 = new JComboBox();
		pane.add(comboBox_1, "cell 1 1,growx");
		
		JLabel lblQuantity = new JLabel("Quantity");
		pane.add(lblQuantity, "cell 0 2,alignx trailing");
		
		textField = new JTextField();
		pane.add(textField, "cell 1 2,growx");
		textField.setColumns(15);
		
		JLabel lblDate = new JLabel("Date");
		pane.add(lblDate, "cell 0 3,alignx trailing");
		
		textField_1 = new JTextField();
		pane.add(textField_1, "cell 1 3,growx");
		textField_1.setColumns(10);
		
		JButton btnCancel = new JButton("Cancel");
		pane.add(btnCancel, "flowx,split 3,cell 1 4");
		
		JButton btnAdd = new JButton("Add");
		pane.add(btnAdd, "cell 1 4");
		
		JButton btnRemove = new JButton("Remove");
		pane.add(btnRemove, "cell 1 4");
		
		
		
		
		
		
		
		
		
}

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

@@ -222,16 +222,17 @@
 skPane;%0A
+%0A
 import j
@@ -1209,209 +1209,8 @@
 %0A%09%09%0A
-%09%09JLabel lblDate = new JLabel(%22Date%22);%0A%09%09pane.add(lblDate, %22cell 0 3,alignx trailing%22);%0A%09%09%0A%09%09textField_1 = new JTextField();%0A%09%09pane.add(textField_1, %22cell 1 3,growx%22);%0A%09%09textField_1.setColumns(10);%0A%09%09%0A
 %09%09JB
@@ -1315,19 +1315,22 @@
 tton btn
-Add
+Update
  = new J
@@ -1337,19 +1337,22 @@
 Button(%22
-Add
+Update
 %22);%0A%09%09pa
@@ -1365,11 +1365,14 @@
 (btn
-Add
+Update
 , %22c
@@ -1390,86 +1390,8 @@
 %09%09%0A%09
-%09JButton btnRemove = new JButton(%22Remove%22);%0A%09%09pane.add(btnRemove, %22cell 1 4%22);
 %0A%09%09%0A

change ui of stock pane