} } }
}); if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { String path = fc.getSelectedFile().getPath(); path = path.substring(0, path.length() - fc.getSelectedFile().getName().length()); JFritz.setProperty("options.exportCSVpath", path); File file = fc.getSelectedFile(); if (!file.exists()) { JOptionPane.showMessageDialog(this, "Error: File not found", "File Not Found", JOptionPane.ERROR_MESSAGE);  } else { jfritz.getCallerlist() .importFromCSVFile(file.getAbsolutePath());  if (JFritz.getProperty("option.lookupAfterFetch", "false") .equals("true")) { lookupButton.doClick(); } } } }
	  public void importCallerlistCSV(){	    JFileChooser fc = new JFileChooser(JFritz.getProperty(	        "options.exportCSVpath", null));	    fc.setDialogTitle(JFritz.getMessage("import_callerlist_csv"));	    fc.setDialogType(JFileChooser.OPEN_DIALOG);	    fc.setSelectedFile(new File(JFritz.CALLS_CSV_FILE));	    fc.setFileFilter(new FileFilter() {	      public boolean accept(File f) {	        return f.isDirectory()	            || f.getName().toLowerCase().endsWith(".csv");	      }	      public String getDescription() {	        return "CSV-Dateien";	      }	    });	    if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {	      String path = fc.getSelectedFile().getPath();	      path = path.substring(0, path.length()	          - fc.getSelectedFile().getName().length());	      JFritz.setProperty("options.exportCSVpath", path);	      File file = fc.getSelectedFile();	      if (!file.exists()) {	        JOptionPane.showMessageDialog(this, "Error: File not found", "File Not Found", JOptionPane.ERROR_MESSAGE);	        	      }else{	        jfritz.getCallerlist().importFromCSVFile(file.getAbsolutePath());	        	        if (JFritz.getProperty("option.lookupAfterFetch", "false")					.equals("true")) {				lookupButton.doClick();			}	      }	    }	  }