title: To setText() while programs processing
body: <p>From my project, I try to make a dictionary brute-force by a method then output any trying and a correct words to <code>textField</code> at the main class.</p>
  
  <p>Output should be</p>
  
  <blockquote>
    <p>Trying a...<br />
    Trying b...<br />
    Trying c...<br />
    Found! c is correct.</p>
  </blockquote>
  
  <p>and this is my code.</p>
  
  <pre class="lang-java prettyprint-override"><code>public static String MD5Dict(String str, String fpth){
      try(BufferedReader br = new BufferedReader(new FileReader(fpth))){
          String sCurrentLine;
          while ((sCurrentLine = br.readLine()) != null){
              Encryption encrypt = new Encryption();
              System.out.println("Trying "+sCurrentLine+"..."); //problem is in this line
              if(str.equals(encrypt.MD5Hashing(sCurrentLine))){
                  return sCurrentLine;
              }
          }
      }catch (IOException e) {
          e.printStackTrace();
      }
      return null;
  </code></pre>
  
  <p>Any suggestions? Thanks.</p>