protected void calcIntegValue() {
		double a = 0.0, b = 0.0;
		double eps = 1e-4;
		double result = 0.0;

		try {
			a = Double.parseDouble(lowTextField.getText());
		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(null, "积分下限输入错误，请检查重输。");
			lowTextField.requestFocus();
			lowTextField.selectAll();
		}

		try {
			b = Double.parseDouble(topTextField.getText());
		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(null, "积分上限输入错误，请检查重输。");
			topTextField.requestFocus();
			topTextField.selectAll();
		}

		try {
			eps = Double.parseDouble(accuracyComboBox.getSelectedItem()
					.toString());
		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(null, "精确度输入错误，请检查重输。");
			accuracyComboBox.requestFocus();
			accuracyComboBox.setSelectedIndex(0);
		}
		
		Details.ex = funcTextField.getText().replaceAll("\\s+", "");
		if (!CheckString.isFuncRight(Details.ex)) {
			JOptionPane.showMessageDialog(null, "函数输入错误，请检查重输。");
			funcTextField.requestFocus();
			funcTextField.selectAll();
		} else {
			run r = new run();
			switch (methodsComboBox.getSelectedIndex()) {
			case 0:
				result = r.getValueTrapezia(a, b, eps);
				break;
			case 1:
				result = r.getValueSimpson(a, b, eps);
				break;
			case 2:
				result = r.getValueRomberg(a, b, eps);
				break;
			case 3:
				result = r.getValueATrapezia(a, b, 0.0001, eps);
				break;
			case 4:
				result = r.getValueLegdGauss(a, b, eps);
				break;
			}
		}
		integResultTextField.setText(result + "");
	}