Guest User

Untitled

a guest
Dec 9th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public void actionPerformed(ActionEvent e) {
  2.             String user= txtUser.getText().trim();
  3.             String password= String.valueOf(passtxtPassword.getPassword());
  4.             if(user=="er" && password=="er"){
  5.                 JOptionPane.showMessageDialog(null,"Logged in successfully");
  6.             }
  7.             else{
  8.                 JOptionPane.showMessageDialog(null,"Wrong");
  9.             }
  10.         }
Add Comment
Please, Sign In to add comment