public static void importCSV(TableModel main, CourseTableModel cTable, InstructorTableModel iTable){
		String fileurl;
		JFileChooser chooser = new JFileChooser();
		File file = new File("Schedule.csv");
		
		int returnVal = chooser.showOpenDialog(null);
		if(returnVal == JFileChooser.APPROVE_OPTION){
		 file = chooser.getSelectedFile();
		 String filePath = file.getPath();
		 	if(!filePath.toLowerCase().endsWith(".csv"))
		 		{//invalid type error
		 		}
		 	
		 	try {
				Scanner in = new Scanner(file);
			
				ArrayList<String> lines = new ArrayList<String>();
				while(in.hasNextLine()){
					String l = in.nextLine();
					System.out.println(l);
						lines.add(l);
				}
				if(lines.size() > 2){	//2 lines in a table,id only, its empty
				 main.setData(loadCourseTable(lines.get(0), lines.subList(1, lines.size()-1)));
				// main.fireTableDataChanged();
				}
				
			} catch (FileNotFoundException e) {
				System.out.println("File not found");
				e.printStackTrace();
			}
		}
		
	}