public void loadFS(Vector<Integer> fighterIds) { String name = JOptionPane.showInputDialog(clientgui.frame, "Choose a squadron designation"); if ((name == null) || (name.trim().length() == 0)) { name = "Flying Circus"; } FighterSquadron fs = new FighterSquadron(name); fs.setOwner(clientgui.getClient().getGame().getEntity(fighterIds.firstElement()).getOwner()); clientgui.getClient().sendAddSquadron(fs, fighterIds); }