Ukom Manual
Ukom Manual
Ukom Manual
Langkah Manual :
> Program dijalankan
> Lalu akan masuk ke tampilan form regestrasi akun mahasiswa
> User di minta untuk memasukkan data sesuai yang di minta, (Username, Password,
Nama dan NIM)
> Setelah itu klik icon/tombol registrasi
> Jika data berhasil di simpan akan keluar notifikasi atau tampilan bahwa
registrasi berhasil
> Setelah berhasil registrasi, maka data akan tersimpan di database (database dapat
di edit dan hapus) yang di simpan dan dapat dilihat di phpMyAdmin
CODING :
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
/**
*
*
*/
/**
* Creates new form Fomregistrasi
*/
public Fomregistrasi() {
initComponents();
}
private void hapuslayar(){
txtuser.setText("");
txtpass.setText("");
txtpassword.setText("");
txtnama.setText("");
txtnim.setText("");
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel2.setText("Password :");
jLabel4.setText("Nama :");
jLabel5.setText("Nim :");
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the
default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException |
IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Fomregistrasi.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>