public static void searchForWord(String text, JLabel jlbempty) {
		InputStream stream = HangManCore.class.getResourceAsStream(text);
		int lines = 0;
		Random lineGen = new Random();

		try {
			lines = countLines(stream);
		} catch (IOException e1) {
			logger.log(Level.WARNING,
					"Could not count lines in file: words.txt", e1);
			;
		}

		int linePicked = lineGen.nextInt(lines);
		try {
			stream = HangManCore.class.getResourceAsStream("words.txt");
			LineNumberReader br = new LineNumberReader(new InputStreamReader(
					stream));

			String strLine = null;
			int line = 0;
			int strLenght = 0;
			while ((strLine = br.readLine()) != null) {
				line = line + 1;
				if (line == linePicked) {
					strLenght = strLine.length();
					new KeyChecker(strLenght);
					char[] words = splitWordChar(strLine);
					word = words;
					Screen.print(words, jlbempty, strLenght, true, false);
					System.out.print("\n" + linePicked + " - " + strLine + " ("+ strLenght + ")");
					logger.log(Level.CONFIG, linePicked + " - " + strLine + " (" + strLenght + ")");
					Text = strLine;
					rline = linePicked;
					lenght = strLenght;
				}
			}
		} catch (Exception e2) {
			logger.log(Level.WARNING, "Could not generate random word", e2);
		}
	}