What is wrong with my code?
String[] movieString = {"movie1", "movie2", "movie3", "movie4"};
JComboBox movieList = new JComboBox(movieString);
movieList.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e)
{
JComboBox a = (JComboBox) e.getSource();
//String movies = (String)a.getSelectedItem();
if (e.isSelected());
return subpanel;
}
});
}