public void update() {
if (memberview2.getTffidentitas().getText().isEmpty() || memberview2.getTffNama().getText().isEmpty() || memberview2.getTffHandpjone().getText().isEmpty()
|| memberview2.getTffAlamat().getText().isEmpty()) {
JOptionPane.showMessageDialog(memberview2, "Form Harap Diisi lengkap & Tidak Kosong.", "Kesalahan", JOptionPane.WARNING_MESSAGE);
} else {
Member member = new Member();
member.setId(memberview2.getTffidentitas().getText().trim().toUpperCase());
member.setNama(memberview2.getTffNama().getText().trim().toUpperCase());
member.setNomorhandphone(memberview2.getTffHandpjone().getText().trim().toUpperCase());
member.setAlamat(memberview2.getTffAlamat().getText().trim().toUpperCase());
serviceMember.updateMember(member);
JOptionPane.showMessageDialog(memberview2, "Data Member Berhasil Disunting.", "Tambah Data Berhasil", JOptionPane.INFORMATION_MESSAGE);
}
}