}
else if (ae.getSource() == m_bPick) {
if(squadron.size() <= 0) {
return;
}
Client c = null;
if (m_chPlayer.getSelectedIndex() > 0) {
String name = (String)m_chPlayer.getSelectedItem();
c = m_clientgui.getBots().get(name);
}
if (c == null) {
c = m_client;
}
//compile the fighter squadron
FighterSquadron fs = new FighterSquadron();
//create a new fighter squadron entity
//FighterSquadron chosen = fs;
//fs.compileSquadron();
autoSetSkills(fs);
fs.setOwner(c.getLocalPlayer());
c.sendAddEntity(fs);
//clear the current squadron
squadron.removeAllElements();
//fs.fighters.removeAllElements();
listFightersSelected.removeAll();
setVisible(false);