public void itemStateChanged(ItemEvent e) {
JCheckBox box = (JCheckBox) e.getSource();
String str = box.getText();
boolean booOne = box.isSelected();
boolean booTwo = str.compareToIgnoreCase(correctAnswer) == 0;
if (booOne) {
if(booTwo){
score++;
}
showScore.setText("分数:" + score);
time.stop(); // 停止计时
maxTime = MAX;
readOneQuesion(); // 进入下一道题目
}
box.setSelected(false);
}