@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == closeBtn) {
			this.setVisible(false);
		} else if (e.getSource() == addBtn) {
			ParameterEditor pe = new ParameterEditor();
			if (pe.isOk()) {
				try {
					model.add(new Parameter(pe.getName(), pe.getFormula()));
				} catch (Exception e1) {
					JOptionPane.showMessageDialog(null, e1.getMessage());
				}
			}
		} else if (e.getSource() == editBtn) {
			editParamCell();
		} else if (e.getSource() == delBtn) {
			int row = table.getSelectedRow();
			model.delete(row);
		}
	}