entities.addItemListener(this);
entities.addListSelectionListener(this);
    MechGroupView(JFrame frame, Client c, int[] eA) {        super(frame, Messages.getString("MechGroupView.title"));        client = c;        entityArray = eA;        for (final int newVar : entityArray) {            Entity entity = client.game.getEntity(newVar);            // Handle the "Blind Drop" option.            if (entity == null)                continue;            if (!entity.getOwner().equals(client.getLocalPlayer())                    && client.game.getOptions().booleanOption("blind_drop")                    && !client.game.getOptions().booleanOption("real_blind_drop")) {                entities.add(ChatLounge.formatUnit(entity, true));            } else if (entity.getOwner().equals(client.getLocalPlayer())                    || (!client.game.getOptions().booleanOption("blind_drop")                    && !client.game.getOptions().booleanOption("real_blind_drop"))) {                entities.add(ChatLounge.formatUnit(entity, false));            }        }        getContentPane().setLayout(new BorderLayout());        getContentPane().add(entities, BorderLayout.WEST);        getContentPane().add(closeButton, BorderLayout.SOUTH);        ta.setEditable(false);        ta.setFont(new Font("Monospaced", Font.PLAIN, 12));        getContentPane().add(ta, BorderLayout.CENTER);        entities.addItemListener(this);        closeButton.addActionListener(this);        setSize(550, 600);        setLocation(frame.getLocation().x + frame.getSize().width / 2 - getSize().width / 2,                frame.getLocation().y + frame.getSize().height / 10);        addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent e) {                e.getWindow().setVisible(false);            }        });    }