void deleteTime(Component dialogParent, Time time) {
		if (time != null) {
			if (AlertMessages.deleteTimeConfirmation(dialogParent, time)) {
				try {
					timeDao.deleteTime(Dao.getConnection(), time);
					timeDialog.setTime(null);
					timeListDialog.selectPreviousRow();
					timeDialog.setVisible(false);
				} catch (SQLException ex) {
					ErrorMessages.sqlExceptionError("deleteTime()", ex);
				} catch (ClassNotFoundException ex) {
					ErrorMessages.classNotFoundError("deleteTime()", ex);
				}
			}
		} else {
			AlertMessages.noTimeSelectedInTableForDeleting(timeListDialog);
		}
	}