-1
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1.revalidate();
jComboBox2.removeAllItems();
jComboBox3.removeAllItems();
jComboBox4.removeAllItems();
String b1=jComboBox1.getSelectedItem().toString();
String bb=this.branch;
String y1=this.year;
if(y1!=null){
String[] b=y1.split(";");
System.out.println(y1);
System.out.println(b1);
int size=b.length;
System.out.println(size);
for(int i=0;i<size;i++){
if(b[i].matches("(?i).*"+b1+".*")){
System.out.println(b[i]);
jComboBox2.addItem(b[i].replaceAll(":","").replaceAll(b1.toLowerCase(), ""));
jComboBox2ActionPerformed(evt);
}}}
}
它先运行时间,同时加载框架,但是当我选择谢胜利项目它给了我错误它先运行时间,同时加载框架,但是当我选择谢胜利项目它给我的错误
什么是错误?你可以在帖子中显示堆栈跟踪吗? – DevilsHnd