Hi there, i'm just having a little difficulty with GUI's and Swing. Heres the thing, I just created a JTextField called answerText and a JButton called okButton. Now, i was wondering, how do I take the value of answerText when I press the okButton? I wish to make a Guessing Game, where the value of the JTextField is taken, compared with a number from a Math.random method and printed out, of how many times it took to guess the number. I hope someone can help me out!! Thank you :)