Having recently found and implemented JComboBox in my code, I cant seem to find anywhere that will help me with the action or itemlistener. What I want to do is set certain TextFields to "uneditable" if "NO" in my drop down menu in my ComboBox is selected...and editable if "YES" in the ComboBox is selected. I dont know if to use itemlisteneres or actionlisteners. Ive tried both and failed miserablly both times. Can someone help?

Here is the specific part of the code:

String [] pp = {"NO", "YES"};
jcbppayment = new JComboBox(pp);
jcbppayment.addItemListener(this);
jcbppayment.addActionListener(this);

jtfamount = new JTextField();
jtfswpayment = new JTextField();
jtfamount.setEditable(false);
jtfswpayment.setEditable(false);

...


public void actionPerformed(ActionEvent e) {
}

...

public void itemStateChanged(ItemEvent ie){
}