package edu.school.pvc;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBox;
import javax.swing.border.TitledBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;
import javax.swing.ImageIcon;
import javax.swing.UIManager;
import java.awt.Color;
	/**
	 * Информатика, 8 клас, издателство Просвета, 2017
	 * Автори: Светла Бойчева, Николина Николова, Елиза Стефанова, Антон Денев
	 * Урок 4.1. Проектиране и разработване на софтуерен проект
	 * Задача: Да се създаде софтуерен продукт за пресмятане на цената на 
	 * PVC дограма, включваща доставка и поставяне.
	 *  
	 * Версия 1.
	 */
public class PVC extends JFrame {
	



	private JPanel contentPane;
	private final ButtonGroup btngCamaras = new ButtonGroup();
	private final ButtonGroup btngOpen = new ButtonGroup();
	private final ButtonGroup btngColors = new ButtonGroup();
	private final ButtonGroup btngGlass = new ButtonGroup();
	private JTextField txtWidth;
	private JTextField txtHeight;

	// цена за кв. метър
	final double PRICE_PER_SQUARE_METER = 50.93;

	// коефициент на оскъпяване според брой камери (3, 4, 5, 6)
	final double camarasCoeficients[] = new double[] { 1, 1.5, 1.7, 1.9 };

	// коефициент на оскъпяване според вид стъклопакет (обикновен, 4 сезона)
	final double glassCoeficients[] = new double[] { 1, 1.5 };

	// коефициент на оскъпяване според цвета (бял, кафяв, дърво)
	final double colorCoeficients[] = new double[] { 1, 1.5, 2 };

	// коефициент на оскъпяване тип на отваряне на прозорците (не се отваря, едноосово, двуосово)
	final double openPrices[] = new double[] { 0, 30, 55.5 };
	
	// цени за отделните компоненти - вид стъклопакет, брой камери, цвят
	final double[] componentPrices = new double[] { 1, 1, 1 };
	
	// цена според тип на отваряне на всяка от частите на прозореца
	final double[] openWindowPrcies = new double[] { 30, 0, 0, 0 };
	
	
	
	private final ButtonGroup btngOpen2 = new ButtonGroup();
	private final ButtonGroup btngOpen3 = new ButtonGroup();
	private final ButtonGroup btngOpen4 = new ButtonGroup();


	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PVC frame = new PVC();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PVC() {
		setResizable(false);
		setTitle("PVC \u0414\u043E\u0433\u0440\u0430\u043C\u0430");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 678, 427);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);



		JPanel pnlMain = new JPanel();
		pnlMain.setBounds(0, 0, 662, 388);
		contentPane.add(pnlMain);
		pnlMain.setLayout(null);

		JLabel lblPrice = new JLabel("\u0426\u0435\u043D\u0430: 0.00 \u043B\u0432.");
		lblPrice.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblPrice.setBounds(354, 324, 133, 31);
		pnlMain.add(lblPrice);

		JPanel pnlCamaras = new JPanel();
		pnlCamaras.setBounds(10, 234, 161, 143);
		pnlMain.add(pnlCamaras);
		pnlCamaras.setBorder(new TitledBorder(null, "\u0411\u0440\u043E\u0439 \u043A\u0430\u043C\u0435\u0440\u0438",
				TitledBorder.LEADING, TitledBorder.TOP, null, null));
		pnlCamaras.setLayout(null);

		JRadioButton rb3Camaras = new JRadioButton("3 \u043A\u0430\u043C\u0435\u0440\u043D\u0430");
		rb3Camaras.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[1] = camarasCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rb3Camaras.setActionCommand("0");
		rb3Camaras.setSelected(true);
		btngCamaras.add(rb3Camaras);
		rb3Camaras.setBounds(17, 23, 109, 23);
		pnlCamaras.add(rb3Camaras);

		JRadioButton rb4Camaras = new JRadioButton("4 \u043A\u0430\u043C\u0435\u0440\u043D\u0430");
		rb4Camaras.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[1] = camarasCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rb4Camaras.setActionCommand("1");
		btngCamaras.add(rb4Camaras);
		rb4Camaras.setBounds(17, 49, 109, 23);
		pnlCamaras.add(rb4Camaras);

		JRadioButton rb5Camaras = new JRadioButton("5 \u043A\u0430\u043C\u0435\u0440\u043D\u0430");
		rb5Camaras.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[1] = camarasCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rb5Camaras.setActionCommand("2");
		btngCamaras.add(rb5Camaras);
		rb5Camaras.setBounds(17, 75, 109, 23);
		pnlCamaras.add(rb5Camaras);

		JRadioButton rb6Camaras = new JRadioButton("6 \u043A\u0430\u043C\u0435\u0440\u043D\u0430");
		rb6Camaras.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[1] = camarasCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rb6Camaras.setActionCommand("3");
		btngCamaras.add(rb6Camaras);
		rb6Camaras.setBounds(17, 101, 109, 23);
		pnlCamaras.add(rb6Camaras);

		JLabel lblNumberOfParts = new JLabel("\u0411\u0440\u043E\u0439 \u0447\u0430\u0441\u0442\u0438:");
		lblNumberOfParts.setBounds(181, 208, 94, 14);
		pnlMain.add(lblNumberOfParts);

		JPanel pnlOpen1 = new JPanel();
		pnlOpen1.setBounds(350, 24, 145, 117);
		pnlMain.add(pnlOpen1);
		pnlOpen1.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"),
				"\u041F\u044A\u0440\u0432\u0430 \u0447\u0430\u0441\u0442", TitledBorder.LEADING, TitledBorder.TOP, null,
				new Color(0, 0, 0)));
		pnlOpen1.setLayout(null);

		JRadioButton rbNone = new JRadioButton("\u041D\u0435 \u0441\u0435 \u043E\u0442\u0432\u0430\u0440\u044F");
		rbNone.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[0] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbNone.setActionCommand("0");
		btngOpen.add(rbNone);
		rbNone.setBounds(19, 23, 109, 23);
		pnlOpen1.add(rbNone);

		JRadioButton rbOneAxis = new JRadioButton("\u0415\u0434\u043D\u043E\u043E\u0441\u043E\u0432\u043E");
		rbOneAxis.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[0] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbOneAxis.setActionCommand("1");
		rbOneAxis.setSelected(true);
		btngOpen.add(rbOneAxis);
		rbOneAxis.setBounds(19, 51, 109, 23);
		pnlOpen1.add(rbOneAxis);

		JRadioButton rbTwoAxes = new JRadioButton("\u0414\u0432\u0443\u043E\u0441\u043E\u0432\u043E");
		rbTwoAxes.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[0] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbTwoAxes.setActionCommand("2");
		btngOpen.add(rbTwoAxes);
		rbTwoAxes.setBounds(19, 79, 109, 23);
		pnlOpen1.add(rbTwoAxes);

		JPanel pnlOpen2 = new JPanel();
		pnlOpen2.setLayout(null);
		pnlOpen2.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"),
				"\u0412\u0442\u043E\u0440\u0430 \u0447\u0430\u0441\u0442", TitledBorder.LEADING, TitledBorder.TOP, null,
				new Color(0, 0, 0)));
		pnlOpen2.setBounds(351, 150, 145, 117);
		pnlMain.add(pnlOpen2);

		JRadioButton rbPanel2None = new JRadioButton("\u041D\u0435 \u0441\u0435 \u043E\u0442\u0432\u0430\u0440\u044F");
		rbPanel2None.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[1] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen2.add(rbPanel2None);
		rbPanel2None.setActionCommand("0");
		rbPanel2None.setSelected(true);
		rbPanel2None.setBounds(19, 23, 109, 23);
		pnlOpen2.add(rbPanel2None);

		JRadioButton rbPanel2OneAxis = new JRadioButton("\u0415\u0434\u043D\u043E\u043E\u0441\u043E\u0432\u043E");
		rbPanel2OneAxis.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[1] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen2.add(rbPanel2OneAxis);
		rbPanel2OneAxis.setActionCommand("1");
		rbPanel2OneAxis.setBounds(19, 51, 109, 23);
		pnlOpen2.add(rbPanel2OneAxis);

		JRadioButton rbPanel2TwoAxes = new JRadioButton("\u0414\u0432\u0443\u043E\u0441\u043E\u0432\u043E");
		rbPanel2TwoAxes.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[1] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen2.add(rbPanel2TwoAxes);
		rbPanel2TwoAxes.setActionCommand("2");
		rbPanel2TwoAxes.setBounds(19, 79, 109, 23);
		pnlOpen2.add(rbPanel2TwoAxes);

		JPanel pnlOpen3 = new JPanel();
		pnlOpen3.setEnabled(false);
		pnlOpen3.setLayout(null);
		pnlOpen3.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"),
				"\u0422\u0440\u0435\u0442\u0430 \u0447\u0430\u0441\u0442", TitledBorder.LEADING, TitledBorder.TOP, null,
				new Color(0, 0, 0)));
		pnlOpen3.setBounds(507, 23, 145, 117);
		pnlMain.add(pnlOpen3);

		JRadioButton rbPanel3None = new JRadioButton("\u041D\u0435 \u0441\u0435 \u043E\u0442\u0432\u0430\u0440\u044F");
		rbPanel3None.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[2] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen3.add(rbPanel3None);
		rbPanel3None.setEnabled(false);
		rbPanel3None.setActionCommand("0");
		rbPanel3None.setSelected(true);
		rbPanel3None.setBounds(19, 23, 109, 23);
		pnlOpen3.add(rbPanel3None);

		JRadioButton rbPanel3OneAxis = new JRadioButton("\u0415\u0434\u043D\u043E\u043E\u0441\u043E\u0432\u043E");
		rbPanel3OneAxis.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[2] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen3.add(rbPanel3OneAxis);
		rbPanel3OneAxis.setEnabled(false);
		rbPanel3OneAxis.setActionCommand("1");
		rbPanel3OneAxis.setBounds(19, 51, 109, 23);
		pnlOpen3.add(rbPanel3OneAxis);

		JRadioButton rbPanel3TwoAxes = new JRadioButton("\u0414\u0432\u0443\u043E\u0441\u043E\u0432\u043E");
		rbPanel3TwoAxes.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[2] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen3.add(rbPanel3TwoAxes);
		rbPanel3TwoAxes.setEnabled(false);
		rbPanel3TwoAxes.setActionCommand("2");
		rbPanel3TwoAxes.setBounds(19, 79, 109, 23);
		pnlOpen3.add(rbPanel3TwoAxes);

		JPanel pnlOpen4 = new JPanel();
		pnlOpen4.setEnabled(false);
		pnlOpen4.setLayout(null);
		pnlOpen4.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"),
				"\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u0430 \u0447\u0430\u0441\u0442", TitledBorder.LEADING,
				TitledBorder.TOP, null, new Color(0, 0, 0)));
		pnlOpen4.setBounds(507, 150, 145, 117);
		pnlMain.add(pnlOpen4);

		JRadioButton rbPanel4None = new JRadioButton("\u041D\u0435 \u0441\u0435 \u043E\u0442\u0432\u0430\u0440\u044F");
		rbPanel4None.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[3] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen4.add(rbPanel4None);
		rbPanel4None.setEnabled(false);
		rbPanel4None.setActionCommand("0");
		rbPanel4None.setSelected(true);
		rbPanel4None.setBounds(19, 23, 109, 23);
		pnlOpen4.add(rbPanel4None);

		JRadioButton rbPanel4OneAxis = new JRadioButton("\u0415\u0434\u043D\u043E\u043E\u0441\u043E\u0432\u043E");
		rbPanel4OneAxis.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[3] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen4.add(rbPanel4OneAxis);
		rbPanel4OneAxis.setEnabled(false);
		rbPanel4OneAxis.setActionCommand("1");
		rbPanel4OneAxis.setBounds(19, 51, 109, 23);
		pnlOpen4.add(rbPanel4OneAxis);

		JRadioButton rbPanel4TwoAxes = new JRadioButton("\u0414\u0432\u0443\u043E\u0441\u043E\u0432\u043E");
		rbPanel4TwoAxes.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openWindowPrcies[3] = openPrices[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngOpen4.add(rbPanel4TwoAxes);
		rbPanel4TwoAxes.setEnabled(false);
		rbPanel4TwoAxes.setActionCommand("2");
		rbPanel4TwoAxes.setBounds(19, 79, 109, 23);
		pnlOpen4.add(rbPanel4TwoAxes);

		JSpinner spnNumberOfParts = new JSpinner();
		spnNumberOfParts.addChangeListener(new ChangeListener() {
			public void stateChanged(ChangeEvent e) {

				pnlOpen3.setEnabled(false);
				rbPanel3None.setEnabled(false);
				rbPanel3OneAxis.setEnabled(false);
				rbPanel3TwoAxes.setEnabled(false);

				pnlOpen4.setEnabled(false);
				rbPanel4None.setEnabled(false);
				rbPanel4OneAxis.setEnabled(false);
				rbPanel4TwoAxes.setEnabled(false);

				int parts = (int) spnNumberOfParts.getValue();
				if (parts > 2) {
					pnlOpen3.setEnabled(true);
					rbPanel3None.setEnabled(true);
					rbPanel3OneAxis.setEnabled(true);
					rbPanel3TwoAxes.setEnabled(true);
				}
				if (parts > 3) {
					pnlOpen4.setEnabled(true);
					rbPanel4None.setEnabled(true);
					rbPanel4OneAxis.setEnabled(true);
					rbPanel4TwoAxes.setEnabled(true);
				}
			}
		});
		spnNumberOfParts.setModel(new SpinnerNumberModel(2, 2, 4, 1));
		spnNumberOfParts.setBounds(285, 205, 29, 20);
		pnlMain.add(spnNumberOfParts);

		JPanel pnlColors = new JPanel();
		pnlColors.setBorder(new TitledBorder(null, "\u0426\u0432\u0435\u0442\u043E\u0432\u0435", TitledBorder.LEADING,
				TitledBorder.TOP, null, null));
		pnlColors.setBounds(181, 265, 136, 112);
		pnlMain.add(pnlColors);
		pnlColors.setLayout(null);

		JRadioButton rbWhite = new JRadioButton("\u0411\u044F\u043B");
		rbWhite.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[2] = colorCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbWhite.setActionCommand("0");
		rbWhite.setSelected(true);
		btngColors.add(rbWhite);
		rbWhite.setBounds(5, 21, 109, 23);
		pnlColors.add(rbWhite);

		JRadioButton rbBrown = new JRadioButton("\u041A\u0430\u0444\u044F\u0432");
		rbBrown.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[2] = colorCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbBrown.setActionCommand("1");
		btngColors.add(rbBrown);
		rbBrown.setBounds(5, 47, 109, 23);
		pnlColors.add(rbBrown);

		JRadioButton rbWood = new JRadioButton("\u0414\u044A\u0440\u0432\u043E");
		rbWood.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[2] = colorCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbWood.setActionCommand("2");
		btngColors.add(rbWood);
		rbWood.setBounds(5, 73, 109, 23);
		pnlColors.add(rbWood);

		JPanel pnlGlass = new JPanel();
		pnlGlass.setBorder(new TitledBorder(null, "\u0421\u0442\u044A\u043A\u043B\u043E", TitledBorder.LEADING,
				TitledBorder.TOP, null, null));
		pnlGlass.setBounds(10, 136, 161, 87);
		pnlMain.add(pnlGlass);
		pnlGlass.setLayout(null);

		JRadioButton rbSimple = new JRadioButton("\u041E\u0431\u0438\u043A\u043D\u043E\u0432\u0435\u043D\u043E");
		rbSimple.setActionCommand("0");
		rbSimple.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[0] = glassCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		rbSimple.setSelected(true);
		btngGlass.add(rbSimple);
		rbSimple.setBounds(18, 26, 109, 23);
		pnlGlass.add(rbSimple);

		JRadioButton rbFourSeasons = new JRadioButton(
				"\u0427\u0435\u0442\u0438\u0440\u0438 \u0441\u0435\u0437\u043E\u043D\u0430");
		rbFourSeasons.setActionCommand("1");
		rbFourSeasons.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				componentPrices[0] = glassCoeficients[Integer.parseInt(e.getActionCommand())];
			}
		});
		btngGlass.add(rbFourSeasons);
		rbFourSeasons.setBounds(18, 52, 109, 23);
		pnlGlass.add(rbFourSeasons);

		JButton btnCalculate = new JButton("\u041F\u0440\u0435\u0441\u043C\u0435\u0442\u043D\u0438");
		btnCalculate.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				double width;
				double height;
				
				// проверка за коректност на входните данни
				try {
					width = Double.parseDouble(txtWidth.getText()) / 100.0;
					height = Double.parseDouble(txtHeight.getText()) / 100.0;
				} catch (NumberFormatException e1) {
					// TODO Auto-generated catch block
					JOptionPane.showMessageDialog(null,
							"Въведете числа с десетична точка за ширина и височина на прозореца!");

					return;
				}

				if (width <= 0 || height <= 0) {
					JOptionPane.showMessageDialog(null,
							"Въведете положителни числа за ширина и височина на прозореца!");
					return;
				}

				// изчисляване на площта на прозореца
				double area = width * height;
				
				// изчисляване на цената на прозореца за кв. метър
				double price = area * PRICE_PER_SQUARE_METER;
				
				
				// оскъпяване на цената на прозореца според избраните опции за всяка от компонентите
				for (int i = 0; i < componentPrices.length; i++) {
					price *= componentPrices[i];
				}
				
				// оскъпяване на цената на прозореца според избраният вид отваряне за всяка от частите
				int parts = (int) spnNumberOfParts.getValue();
				for (int i = 0; i < parts; i++)
					price += openWindowPrcies[i];
				lblPrice.setText(String.format("Цена: %.2fлв.", price));
			}
		});
		btnCalculate.setBounds(547, 320, 105, 23);
		pnlMain.add(btnCalculate);

		JButton btnClear = new JButton("\u0418\u0437\u0447\u0438\u0441\u0442\u0438");
		btnClear.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rbSimple.setSelected(true);
				rb3Camaras.setSelected(true);
				rbWhite.setSelected(true);
				txtHeight.setText("");
				txtWidth.setText("");
				spnNumberOfParts.setValue(2);
				rbOneAxis.setSelected(true);
				rbPanel2None.setSelected(true);
				rbPanel3None.setSelected(true);
				rbPanel4None.setSelected(true);
				lblPrice.setText("Цена: 0.00лв.");
			}
		});
		btnClear.setBounds(547, 354, 105, 23);
		pnlMain.add(btnClear);

		JLabel lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(PVC.class.getResource("/edu/school/pvc/images/window.png")));
		lblLogo.setBounds(10, 11, 317, 114);
		pnlMain.add(lblLogo);

		JLabel lblWidth = new JLabel("\u0428\u0438\u0440\u043E\u0447\u0438\u043D\u0430:");
		lblWidth.setBounds(184, 139, 82, 14);
		pnlMain.add(lblWidth);

		txtWidth = new JTextField();
		txtWidth.setBounds(266, 136, 65, 20);
		pnlMain.add(txtWidth);
		txtWidth.setColumns(10);

		txtHeight = new JTextField();
		txtHeight.setColumns(10);
		txtHeight.setBounds(266, 164, 65, 20);
		pnlMain.add(txtHeight);

		JLabel lblHeight = new JLabel("\u0412\u0438\u0441\u043E\u0447\u0438\u043D\u0430:");
		lblHeight.setBounds(184, 167, 82, 14);
		pnlMain.add(lblHeight);

	}
}
