Problem with login
I have designed a simple application using card layout. The layout of first card in it is set as group layout. This first card contains two JLabels, One text field, password field and a button named ok.
i have used two strings, one to store the name and other to store the password. Now what i need is when i enter the same name and password then i should get the next card. But when i click the ok button without entering any text in the fields, then also i am able to get the next card. For the button i have written the Listener. I guess the problem is with my code and the code is as follows:
final String str = "adeeb";
final String str1 = "alexander";
public void actionPerformed(ActionEvent e)
So i am unable to solve this problem. Please Some One solve it.