hmmm...
if (e.getSource() == connect){
//THIS DOES NOT THROW THE VALUE OF userName TO loginUser()??????
loginUser(userName.getText());
}
I don't have Java installed on this computer, so I can't run your program... but the static method you are calling returns a boolean value, so this ActionListener bit should be something like...
Boolean x = loginUser(userName.getText()); (to get said method to run, and to accept the returned boolean value)
if that doesn't work... then try
Boolean x = DocumentClient.loginUser(DocumentClient.userName.getText());
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 55 posts
since Sep 2004