public void checkTrips() {
		
		enablePreviewButtons (MainWindow.tripDB.checkDay (targetDay.getTime(), checkResultText));
		int e = MainWindow.tripDB.getCheckErrors();
		int w = MainWindow.tripDB.getCheckWarnings();
		if (e > 0) {
			errorsField.setFont(errorsField.getFont().deriveFont(Font.BOLD));
			errorsField.setForeground(Color.RED);
		}
		else {
			errorsField.setFont(errorsField.getFont().deriveFont(Font.PLAIN));
			errorsField.setForeground(new Color (0, 100, 0));
		}
		errorsField.setText("Fehler: " + e);
		if (w > 0) {
			warningsField.setFont(errorsField.getFont().deriveFont(Font.BOLD));
			warningsField.setForeground(new Color (100, 100, 0));
		}
		else {
			warningsField.setFont(errorsField.getFont().deriveFont(Font.PLAIN));
			warningsField.setForeground(new Color (0, 100, 0));
		}
		warningsField.setText("Warnungen: " + w);
		
	}