K
Kevin Munro
Hello, my application class is calling a login method of a login class. This
login method brings up a list of users from the database and makes a
JPasswordField and JButton available.
I've got an ActionListener on my JButton and this code goes to the database
and validates the user & password combination when the user clicks the
JButton.
All is well, but how do I tell my application class that the user has just
logged on?
In VB I would use the RaiseEvent method and pass in a user id but there
doesn't seem to be any way of passing events back to a calling class in
Java.
Any advice? I don't really want to make my dialogs modal.
Thanks, Kevin.
login method brings up a list of users from the database and makes a
JPasswordField and JButton available.
I've got an ActionListener on my JButton and this code goes to the database
and validates the user & password combination when the user clicks the
JButton.
All is well, but how do I tell my application class that the user has just
logged on?
In VB I would use the RaiseEvent method and pass in a user id but there
doesn't seem to be any way of passing events back to a calling class in
Java.
Any advice? I don't really want to make my dialogs modal.
Thanks, Kevin.