苦情ボックスを押すと、各入力ダイアログが2回表示されます... boxComplain.setSelected(true)を削除しようとしましたが、機能しました(1回だけ表示されました)が、入力を入力した後にチェックボックスが移動しました。
class CheckBoxListener implements ItemListener {
public void itemStateChanged(ItemEvent event) {
if(boxComplain.isSelected())
{
ab=JOptionPane.showInputDialog("Enter Reason of Complain: ");
ac=JOptionPane.showInputDialog("Enter What The Complain is About: ");
label4.setText("Complain request");
boxComplain.setSelected(true);
}
}
}