title: Displaying a random number into a Textfield using jFrame
body: <p>How would I display a random number into a text field on jFrame? My method for generating a random number is in a different class.</p>
  
  <pre><code>Random rn = new Random(); 
      int i = rn.nextInt(51);
      System.out.println(i);  
  </code></pre>
  
  <p>How would I make the number appear in the textfield?</p>