/** * This constructor have to be called anly from addNotify() method */ public BattleArmorMapSet(JComponent c) { comp = c; setAreas(); setBackGround(); }
.getString("BattleArmorMapSet.Killed")); //$NON-NLS-1$ } else { drawArmorImage(armorImage[i], armor + internal); armorLabels[i].setValue(Integer.toString(armor + internal)); armorAreas[i].setVisible(true);
@Override public void addNotify() { super.addNotify(); tank = new TankMapSet(this, unitDisplay); mech = new MechMapSet(this, unitDisplay); infantry = new InfantryMapSet(this); battleArmor = new BattleArmorMapSet(this); proto = new ProtomechMapSet(this, unitDisplay); vtol = new VTOLMapSet(this, unitDisplay); quad = new QuadMapSet(this, unitDisplay); tripod = new TripodMechMapSet(this, unitDisplay); gunEmplacement = new GunEmplacementMapSet(this); armless = new ArmlessMechMapSet(this, unitDisplay); largeSupportTank = new LargeSupportTankMapSet(this, unitDisplay); superHeavyTank = new SuperHeavyTankMapSet(this, unitDisplay); aero = new AeroMapSet(this, unitDisplay); capFighter = new CapitalFighterMapSet(this); sphere = new SpheroidMapSet(this, unitDisplay); jump = new JumpshipMapSet(this, unitDisplay); warship = new WarshipMapSet(this, unitDisplay); squad = new SquadronMapSet(this, game); }