//Build the checkboxes on which data to gather
String[] chkBoxText = {"Actions by Status","Injects by Status", "Injects by Priority"};
if (constCheckBox("Choose the data to display","",chkBoxText) != JOptionPane.YES_OPTION) {
return;
} else {
cont = "No";
for (int i = 0;i < chkBoxes.length; i++) {
if (chkBoxes[i].isSelected()) {
cont = "Yes";
}
}
if (cont == "No") {
JOptionPane.showMessageDialog(null, "You did not select any data, exiting!");
return;
}
}