private void cmdProsesActionPerformed(java.awt.event.ActionEvent evt) {
if (listProdi.isSelectedIndex(0)){
JOptionPane.showConfirmDialog(null,"Teknik Informatika","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(1)){
JOptionPane.showConfirmDialog(null,"Sistem Informasi","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(2)){
JOptionPane.showConfirmDialog(null,"Manajemen Informatika","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(3)){
JOptionPane.showConfirmDialog(null,"Komputerisasi Akuntansi","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
}
private void listProdiMouseClicked(java.awt.event.MouseEvent evt) {
if (listProdi.isSelectedIndex(0)){
JOptionPane.showConfirmDialog(null,"Teknik Informatika","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(1)){
JOptionPane.showConfirmDialog(null,"Sistem Informasi","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(2)){
JOptionPane.showConfirmDialog(null,"Manajemen Informatika","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
if (listProdi.isSelectedIndex(3)){
JOptionPane.showConfirmDialog(null,"Komputerisasi Akuntansi","pesan",
JOptionPane.CLOSED_OPTION,JOptionPane.WARNING_MESSAGE);
}
}
Tidak ada komentar:
Posting Komentar