private void getTextFromFields(){
		for(int j = 0;j < repository.size();j++){
			redQueryList.get(j).clear();
			greenQueryList.get(j).clear();
			blueQueryList.get(j).clear();
			redQueryStrings.get(j).clear();
			greenQueryStrings.get(j).clear();
			blueQueryStrings.get(j).clear();
		}
		for(int i = 0;i < repository.size();i++){
			String redQuery = redSearchQuery.getText();
			String greenQuery = greenSearchQuery.getText();
			String blueQuery = blueSearchQuery.getText();
			StringTokenizer redQuerySplit = new StringTokenizer(redQuery, ",");
			StringTokenizer greenQuerySplit = new StringTokenizer(greenQuery, ",");
			StringTokenizer blueQuerySplit = new StringTokenizer(blueQuery, ",");
			Term redTerms;
			Term greenTerms;
			Term blueTerms;
			while(redQuerySplit.hasMoreTokens()){
				redQuery = redQuerySplit.nextToken();
				redQuery = redQuery.trim();
				redQueryStrings.get(i).add(redQuery);
				redTerms = repository.get(i).queryForTerm(redQuery);
				if(redTerms == null){
					System.out.println(redQuery+" not found.");
				}
				else {
					redQueryList.get(i).add(redTerms);
				}
			}
			while(greenQuerySplit.hasMoreTokens()){
				greenQuery = greenQuerySplit.nextToken();
				greenQuery = greenQuery.trim();
				greenQueryStrings.get(i).add(greenQuery);
				greenTerms = repository.get(i).queryForTerm(greenQuery);
				if(greenTerms == null){
					System.out.println(greenQuery+" not found.");
				}
				else {
					greenQueryList.get(i).add(greenTerms);
				}
			}
			while(blueQuerySplit.hasMoreTokens()){
				blueQuery = blueQuerySplit.nextToken();
				blueQuery = blueQuery.trim();
				blueQueryStrings.get(i).add(blueQuery);
				blueTerms = repository.get(i).queryForTerm(blueQuery);
				if(blueTerms == null){
					System.out.println(blueQuery+" not found.");
				}
				else {
					blueQueryList.get(i).add(blueTerms);
				}
			}
		}
	}