private void addFiles(File[] files) {

		String datePattern = perfLogData.DEFAULT_DATE_PATTERN;
		for (int i = 0; i < files.length; ) {				

			try {
				perfLogData.loadPerfLogFile(files[i].getAbsolutePath(), datePattern);
				datePattern = perfLogData.DEFAULT_DATE_PATTERN;
				i = i + 1;
			} catch (ParseException e) {	
				String dateString = e.getMessage();
				dateString = dateString.substring(dateString.indexOf("\""));
				if (dateString == null) {
					//statusBar.setInfoText("Could not parse the file: " + files[i].getName());
					i = i + 1;
					continue;
				}

				String s = (String)JOptionPane.showInputDialog(
						frame,
						"Could not parse the input date. \nPlease enter a new format:\n"
								+ dateString,
								"Set Date Format",
								JOptionPane.QUESTION_MESSAGE,
								null,
								null,
								datePattern);

				if (s != null) {
					datePattern = s.trim();
				} else {
					i = i + 1;
					continue;
				}
			} catch (IOException e) {
				JOptionPane.showMessageDialog(frame,
						"Could not process the file: " + files[i].getName(),
						"Error",
						JOptionPane.ERROR_MESSAGE);
				i = i + 1;
			} 

		}
		updateFilterManager();			
	}