} else if (ev.getSource().equals(lisEntities)) { boolean selected = lisEntities.getSelectedIndex() != -1; butCustom.setEnabled(selected);   if (selected && client.game.getOptions().booleanOption("blind_drop")) { Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]); butMechReadout.setEnabled(entity.getOwner().equals(client.getLocalPlayer())); butCustom.setEnabled(entity.getOwner().equals(client.getLocalPlayer())); } else { butMechReadout.setEnabled(selected); }  butDelete.setEnabled(selected);
    public void itemStateChanged(ItemEvent ev) {        // Are we ignoring events?        if (isIgnoringEvents()) {            return;        }        if (ev.getSource().equals(choTeam)) {            changeTeam(choTeam.getSelectedIndex());        } else if (ev.getSource().equals(chkBV) || ev.getSource().equals(chkTons) || ev.getSource().equals(chkCost)) {            refreshBVs();            if (ev.getSource().equals(chkBV)) {                labBVs.setText(Messages.getString("ChatLounge.labBVs.BV"));            } else if (ev.getSource().equals(chkTons)) {                labBVs.setText(Messages.getString("ChatLounge.labBVs.Tons"));            } else {                labBVs.setText(Messages.getString("ChatLounge.labBVs.Cost"));            }        } else if (ev.getSource().equals(lisEntities)) {            boolean selected = lisEntities.getSelectedIndex() != -1;            butCustom.setEnabled(selected);            // Handle "Blind drop" option.            if (selected && client.game.getOptions().booleanOption("blind_drop")) { //$NON-NLS-1$                Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);                butMechReadout.setEnabled(entity.getOwner().equals(client.getLocalPlayer()));                butCustom.setEnabled(entity.getOwner().equals(client.getLocalPlayer()));            } else {                butMechReadout.setEnabled(selected);            }            butDelete.setEnabled(selected);        }    }