@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == okBtn) {
			try {
				double[] v = new double[flds.length];
				for (int i = 0; i < flds.length; i++) {
					v[i] = Double.parseDouble(flds[i].getText());
				}
				x = new ColumnMatrix(v);
				ok = true;
				setVisible(false);
			} catch (NumberFormatException e1) {
				JOptionPane.showMessageDialog(null, e1.getLocalizedMessage());
			}
		} else {
			ok = false;
			setVisible(false);
		}
	}