private void comBox1ActionPerformed(java.awt.event.ActionEvent evt){
if(comBox1.getSelectedIndex()==0){
comBox2.setSelectedIndex(0);
}
}
当我运行它时,会出现如下错误消息: 线程“AWT-EventQueue-0”中的异常java.lang.IlegalArgumentException:setSelectedIndex:0 out of bounds
请问,如何解决这个问题?