which listener to use in my combobox?
<p>I need to add listener to a combobox called complementComboBox that depends on textfield called numtxtfield, once the user enter the num value, the combobox must get data of complement that have the same num.
I used an ActionListener on the comboBox but I get nothing on m comboBox. Here's the code: 
NB: searchProperties is the instance of SearchProperties() that contains graphical components:</p>

<pre><code>     final List&lt;String&gt; attributeComplement = new ArrayList&lt;String&gt;();
     searchProperties.getComplementComboBox().addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent e) {

           for(BasicFeature basicFeature : list) {                   
                String complement;
                if ( searchProperties.getNumTextField().getText().equals(basicFeature.getString("num")))
                {
                     complement =basicFeature.getString("complement");
                     attributeComplement.add(complement);
                }

           }
            searchProperties.getComplementComboBox().setModel(new DefaultComboBoxModel(attributeComplement.toArray()));
       }


   });
</code></pre>
