This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Ben, Just to elaborate a bit on what Don posted, the Java API is your friend. If you look at the API for JTextField you will notice that the method setText() takes a String as an argument. You tried to pass it an int, hence, the compilation error. Also, look closely at compliation errors. They are pretty good, though not always, about telling you what the problem is. I only say all this because it can save you a tremendous amount of time waiting for people to reply to your posts. I also say this because I wasn't sure if you knew the reason WHY what you were doing didn't work. I am imfamous for just getting things to work and not caring WHY it works or didn't work. After 4 years of Java programming, I am now trying to break that habit and learn more about WHY than just accepting that things work.