You call the method on the JTextField itself. To learn how to use JTextFields, please check the tutorials, Using JTextFields and the JTextField API
Type: Posts; User: curmudgeon
You call the method on the JTextField itself. To learn how to use JTextFields, please check the tutorials, Using JTextFields and the JTextField API
Yep, as I thought, that's the toString() returned from your JTextField variable which is certainly not what you want. Get the JTextField's text instead by calling getText() on it.
Also, did your...
Please see the edit to my post above.
So TheirAnswer is the JTextField itself? then String.valueOf(TheirAnswer) doesn't make much sense since this will return the toString() value of the...
What does TheirAnswer represent?
And again, have you added some debug code to your program? Something like:
private void NameCheckerActionPerformed(java.awt.event.ActionEvent evt) { ...
Sorry if I'm dragging this out, but I'm still a bit unclear. First off, what is a textbox? I don't know of a Swing component with this name. Do you mean JTextField? If so, please let us know and also...
Please do go on... How does the user enter the String? What does the user do to tell the GUI to move the String? Where is the String initially? Where is supposed to be moved? Where exactly are you...
??
Can you give us more information? Please assume that we have no idea to start with what you're trying to accomplish with your program or what it might currently be doing wrong. We're dependent on...