private void readDictionary(File dictionary) {
		try (BufferedReader reader = new BufferedReader(new FileReader(dictionary))) {
			String line;
			while ((line = reader.readLine()) != null) {
				entries.add(line);
				list.add(line);
			}
		
		} catch (FileNotFoundException ex) {
			ex.printStackTrace();
		} catch (IOException ex) {
			ex.printStackTrace();
		} 
	}