boolean zeroBased,
    public static JComboBox createEnemyComboBox(        boolean zeroBased,        final ActionListener al)    {        SimpleComboBoxModel model = createEnemyComboBoxModel(zeroBased);        final JComboBox out = new JComboBox(model);        out.addActionListener(al);        model.addListDataListener(new ListDataListener()        {            public void contentsChanged(ListDataEvent lde)            {                if (out.getSelectedIndex() == -1)                {                    out.removeActionListener(al);                    out.setSelectedIndex(lde.getIndex0());                    out.addActionListener(al);                }            }            public void intervalAdded(ListDataEvent arg0)            {}            public void intervalRemoved(ListDataEvent arg0)            {}        });        return out;    }