When you call redBox,
greenBox,
blueBox, the
listeneris
null`
public ComboPanel()
{
colorComboBox();
listener = new ChoiceListener();
}
Instead, initialize the listener
first...
public ComboPanel()
{
listener = new ChoiceListener();
colorComboBox();
}