| Author |
Help with a simple login Gui
|
James Hambrick
Ranch Hand
Joined: Sep 04, 2004
Posts: 277
|
|
I get compile errors saying "cannot find symbol txtUsername" Also cannot find txtPassword, username, or password.
|
Visit my blog! http://jameshambrick.com
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9939
|
|
txtUsername is declared inside the go() method. if you are not in that method, the variable doesn't exist. Same for the others.
you probably want to declare them as member variables, then set them inside your go() method... something like:
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
James Hambrick
Ranch Hand
Joined: Sep 04, 2004
Posts: 277
|
|
Thanks that worked, I also rename username to strUsername and password to str Password(thinking they were reserved words). And changed txtUsername.setText = ""; to
txtUsername.setText("");
Now it runs yea!
|
 |
 |
|
|
subject: Help with a simple login Gui
|
|
|