private double parseAngleFields(JTextField degrees, JTextField minutes,
			JTextField seconds) {
		double d, m, s;

		try {
			d = Double.parseDouble(degrees.getText());
		} catch (NumberFormatException nfe) {
			d = 0.0;
		}

		try {
			m = Double.parseDouble(minutes.getText());
		} catch (NumberFormatException nfe) {
			m = 0.0;
		}

		try {
			s = Double.parseDouble(seconds.getText());
		} catch (NumberFormatException nfe) {
			s = 0.0;
		}

		return d + m / 60.0 + s / 3600.0;
	}