I'm wondering how to make it so after the user enters something in the text box, and presses an "OK" button beside the text box, to check what the text in the box is and set it to a variable?
Printable View
I'm wondering how to make it so after the user enters something in the text box, and presses an "OK" button beside the text box, to check what the text in the box is and set it to a variable?
Your question will be answer here:
How to Use Text Fields (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
Ah, how didn't I see that!
Thanks, I'll read that over. :(happy):