stanleyhuen
asked on
swing login application
I am writing a swing login application.
I have a screen have "username" and "password" fields,
after a user logined then he will go to a screen which he can change his password, but how can I bring the username from first screen to second screen?
I have a screen have "username" and "password" fields,
after a user logined then he will go to a screen which he can change his password, but how can I bring the username from first screen to second screen?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> ... or store it in a static variable
How is that different than:
"You just need to store the userid somewhere that is accessible from the second screen"
:-)
How is that different than:
"You just need to store the userid somewhere that is accessible from the second screen"
:-)
it's different because it is a concrete example :)
randy
randy
Or store the userid and pass it to the second screen when you need to display it.