You are on page 1of 1

private void jButton1ActionPerformed(java.awt.event.

ActionEvent evt) {

String a,b;

a=tf1.getText();

b=new String(tf2.getPassword());

if (a.equals("umk") && b.equals("jmk"))

MainUI ob=MainUI();

ob.setVisible(true);

else

JOptionPane.showMessageDialog(null,"Either usename or password is incorrect");

You might also like