Ok je note, par contre je ne vois toujours rien j'ai toujours item. Mais j'ai remarqué que les objets "Jcombo box" sont codé en dur à l'intérieur ça n'affecte pas mon code ?
Code:
1
2
3
4
5
6
7
8
9
10
11 box_localisation = new javax.swing.JComboBox<>(); box_localisation.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); box_localisation.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { box_localisationActionPerformed(evt); } }); // Code adding the component to the parent container - not shown here