Skip to content

Instantly share code, notes, and snippets.

@Dwiga
Last active July 31, 2017 12:10
Show Gist options
  • Save Dwiga/8d9c06cf4a55fc696e621d6cf4278055 to your computer and use it in GitHub Desktop.
Save Dwiga/8d9c06cf4a55fc696e621d6cf4278055 to your computer and use it in GitHub Desktop.
private void btnProcessMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
int strUsia = Integer.parseInt(txtUsia.getText());
int thnLahir = 2017-strUsia;
String a = "Nama saya" + txtNama.getText()+ ", Saya biasa di panggil " + txtNickname.getText() + ", Alamat saya " + txtAlamat.getText() + ", nomor hp saya " + txtNohp.getText() + ""
+ " dan lahir pada tahun " + thnLahir;
plcTxt.setText(a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment