Hello, i'm new to the site and i have a little problem with variable values. I have a username/password JForm that compares the input data in my textFields with my MySQL database. The thing is that my string (lets name it someString) gets the value from my textField when a button is pressed, but i can't return any value as actionPerformed is void type. If i declare it as an instance variable and use in my JForm2 as:
JForm1 jform=new JForm();
String temp=jform.someString;
i get the initial value, not the gathered from the textField.
I've tried with a method outside actionPerformed, but the result is the same. Any ideas?
Thanks!
JForm1 jform=new JForm();
String temp=jform.someString;
i get the initial value, not the gathered from the textField.
I've tried with a method outside actionPerformed, but the result is the same. Any ideas?
Thanks!