private void initComponents() {
		
		//Pozitionarea ferestrei in centrul ecranului
		setLocationRelativeTo(null); 

		addWindowListener(new WindowListener() {
			@Override
			public void windowOpened(WindowEvent arg0) {

				motherWindow.setEnabled(false);
			}

			@Override
			public void windowClosing(WindowEvent arg0) {

				close();
			}

			@Override
			public void windowClosed(WindowEvent e) {
				
			}

			@Override
			public void windowIconified(WindowEvent e) {
				
			}

			@Override
			public void windowDeiconified(WindowEvent e) {
				
			}

			@Override
			public void windowActivated(WindowEvent e) {
				
			}

			@Override
			public void windowDeactivated(WindowEvent e) {
				
			}
		});	

		setResizable(false);
		setPreferredSize(new Dimension(300, 120));

		paramsPanel = new JPanel();
		getContentPane().add(paramsPanel, BorderLayout.CENTER);
		paramsPanel.setLayout(new BoxLayout(paramsPanel, BoxLayout.Y_AXIS));

		errorLabel = new JLabel("");
		errorLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
		errorLabel.setHorizontalAlignment(SwingConstants.CENTER);
		errorLabel.setForeground(Color.RED);
		errorLabel.setFont(new Font("Tahoma", Font.PLAIN, 12));
		errorLabel.setPreferredSize(new Dimension(300, 15));
		errorLabel.setMinimumSize(new Dimension(300, 15));
		errorLabel.setMaximumSize(new Dimension(300, 15));

		buttonsPanel = new JPanel();
		buttonsPanel.setMaximumSize(new Dimension(250, 50));
		buttonsPanel.setMinimumSize(new Dimension(250, 50));
		buttonsPanel.setPreferredSize(new Dimension(250, 50));
		buttonsPanel.setLayout(new BoxLayout(buttonsPanel, BoxLayout.X_AXIS));
		getContentPane().add(buttonsPanel, BorderLayout.SOUTH);

		horizontalGlue = Box.createHorizontalGlue();
		buttonsPanel.add(horizontalGlue);

		okButton = new JButton("OK");
		okButton.setPreferredSize(new Dimension(100, 30));
		okButton.setMaximumSize(new Dimension(100, 30));
		okButton.setMinimumSize(new Dimension(100, 30));
		buttonsPanel.add(okButton);

		horizontalStrut = Box.createHorizontalStrut(20);
		buttonsPanel.add(horizontalStrut);

		cancelButton = new JButton("Cancel");
		cancelButton.setPreferredSize(new Dimension(100, 30));
		cancelButton.setMaximumSize(new Dimension(100, 30));
		cancelButton.setMinimumSize(new Dimension(100, 30));
		buttonsPanel.add(cancelButton);

		horizontalGlue_1 = Box.createHorizontalGlue();
		buttonsPanel.add(horizontalGlue_1);

		okButton.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				ParametersWindow.this.okClicked(evt);
			}
		});

		cancelButton.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				ParametersWindow.this.cancelClicked(evt);
			}
		});

		pack();
	}