Code:
public class MyActionListener implements ActionListener { public void actionPerformed(ActionEvent evt) { JComboBox yearcombo = (JComboBox)evt.getSource(); // Get the new item Object stateselect = yearcombo.getSelectedItem(); } }
why doesnt this code work, it says it cant find "evt"
Comment