Buat Anda yang belum bisa melogin tampilan desain yang dibuat.
silakan lihat code program dibwh ini,, smoga brmanfaat.
package tugasakhir;
import javax.swing.JOptionPane;
public class login extends javax.swing.JFrame {
public login() {
initComponents();
}
@SuppressWarnings("unchecked")
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String Username, Password = new String ("");
Username = eNama.getText();
Password = new String (ePassword.getPassword());
boolean Pernyataan = Username.equals("TugasAkhir") && Password.equals("seneng");
//untk user ma password xg d'dalam kurug bisa d'gnti trserah nma'ny.
if (Pernyataan == true){
home form1=new home ();
form1.setVisible(true);
this.setVisible(false);
}else{
JOptionPane.showConfirmDialog(null,"Login Gagal", "Login", JOptionPane.DEFAULT_OPTION);
}
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new login().setVisible(true);
}
});
}
}