Link to home
Start Free TrialLog in
Avatar of stanleyhuen
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?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

You just need to store the userid somewhere that is accessible from the second screen.
Or store the userid and pass it to the second screen when you need to display it.
ASKER CERTIFIED SOLUTION
Avatar of Venci75
Venci75

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> ... 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"

:-)
Avatar of randyd
randyd

it's different because it is a concrete example :)

randy