public void searchInText(String file){
		if(source1.isSelected()){
			file="oliver.txt";
			File thefile=new File(file);
			yourFile=thefile;	
			gp.searchSource(yourFile);
		
		 }
		else if(source2.isSelected()){
			file="worlds.txt";
			File thefile=new File(file);
			yourFile=thefile;
			gp.searchSource(yourFile);
			
			 }
		else if(source3.isSelected()){
			file="prince.txt";
			File thefile=new File(file);
				yourFile=thefile;
				gp.searchSource(yourFile);
			
			 }
		else if(yourSource.isSelected()){
			if(yourFile!=null){
				gp.searchSource(yourFile);
				
			}else{
				JOptionPane.showMessageDialog(null, "You have to browse for your file first :(","Error",1);
			}
			
		}else if(file.equals("testsource.txt")){
			File thefile=new File(file);
			yourFile=thefile;
			gp.searchSource(yourFile);
		}
		
		else{
			JOptionPane.showMessageDialog(null, "You have not selected any of the source files :(","Error",1);
		}
	}