JFileChooser chooser = new JFileChooser(new File("."));
chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
chooser.setMultiSelectionEnabled(true);
chooser.setDialogTitle("Choose File to Compile");
chooser.setFileFilter(chooserFileFilter);
if(chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
File[] flist = chooser.getSelectedFiles();
if (flist != null && flist.length != 0){
try {
for (int i=0; i<flist.length; i++){
File f = flist[i].getCanonicalFile();