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);
}}}
}
Il exécute première fois lors du chargement du cadre mais quand je choisis l'élément secound il me donne l'erreurIl exécute première fois lors du chargement du cadre mais quand je choisis l'élément secound il me donne l'erreur
Et quelle est l'erreur? Pouvez-vous afficher la pile dans votre message? – DevilsHnd