You are on page 1of 3

A.

Rancangan Form

B. Tampilan Exekusi Program

1
C. Listing Program

1. Tombol PROSES
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String jenkel = "", agama;
if (rblaki.isSelected()) {
jenkel = "Laki - Laki";
} else if (rbperempuan.isSelected()) {
jenkel = "Perempuan";
}
agama = cmbagama.getSelectedItem().toString();

txtarea.setText("Nama\t: " + txtnama.getText()


+ "\n Tempat / TGl\t: " + txttanggal.getText()
+ "\n Jenis Kelamin\t: " + jenkel
+ "\n Agama\t: " + agama
+ "\n No HP\t: " + txthp.getText()
+ "\n Email\t: " + txtemail.getText()

+ "\n Alamat\t: " + txtalamat.getText()); // TODO add your handling code


here:

}
2. TOMBOL CLEAR
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
txtnama.setText("");
txttanggal.setText("");
txtemail.setText("");
txthp.setText("");
txtalamat.setText("");
txtarea.setText(""); // TODO add your handling code here:
}

2
3. TOMBOL EXIT
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
dispose(); // TODO add your handling code here:
}