if (client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]) instanceof Mech) {  butMechReadout.setEnabled(selected); } else { butMechReadout.setEnabled(false); }
    public void itemStateChanged(ItemEvent ev) {        if (ev.getSource() == choColor) {            changeColor(choColor.getSelectedIndex());        } else if (ev.getSource() == choTeam) {            changeTeam(choTeam.getSelectedIndex());        } else if (ev.getSource() == chkBV || ev.getSource() == chkTons) {            refreshBVs();        } else if (ev.getSource() == lisEntities) {            boolean selected = lisEntities.getSelectedIndex() != -1;            butCustom.setEnabled(selected);            butDelete.setEnabled(selected);        }            }