I want to make a miniLayar is shown as option pane with one of the button functioning like tmbATM. Is that possible :( I'm desperate how to do it. and each time that button is pressed, the i value is +1. can anyone figure this out ?
public void action() {
oke.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jlhNasabah = Integer.parseInt(inputAngka.getText());
for (i = 0; i <= jlhNasabah;) {
miniLayar.setVisible(true);
tmbATM.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
i += 1;
burstText.append((i) + "\tATM");
Nama = JOptionPane.showInputDialog("Masukkan Nama Anda :");
Alamat = JOptionPane.showInputDialog("Masukkan Alamat Anda : ");
NoKTP = JOptionPane.showInputDialog("Masukkan Nomor KTP Anda : ");
syncText.append("Nasabah Put Informasi\n");
burstText.append("\t3\t3\t3");
burstText.append("\n");
miniLayar.setVisible(false);
int reply = JOptionPane.showConfirmDialog(null, "Ingin Melanjutkan ?", "Konfirmasi", JOptionPane.YES_NO_OPTION);
if (reply == JOptionPane.NO_OPTION) {
i = jlhNasabah + 1;
}
}
});
}
}
});
}