use of megameklab.com.util.EquipmentListCellKeySelectionManager in project megameklab by MegaMek.
the class EquipmentView method loadEquipmentCombo.
private void loadEquipmentCombo() {
equipmentCombo.setRenderer(new EquipmentListCellRenderer(getBattleArmor()));
equipmentCombo.setKeySelectionManager(new EquipmentListCellKeySelectionManager());
equipmentCombo.removeAllItems();
equipmentTypes = new Vector<EquipmentType>();
for (EquipmentType eq : masterEquipmentList) {
if (UnitUtil.isLegal(getBattleArmor(), eq)) {
equipmentTypes.add(eq);
equipmentCombo.addItem(eq);
}
}
}
use of megameklab.com.util.EquipmentListCellKeySelectionManager in project megameklab by MegaMek.
the class EquipmentView method loadEquipmentCombo.
private void loadEquipmentCombo() {
equipmentCombo.setRenderer(new EquipmentListCellRenderer(getTank()));
equipmentCombo.setKeySelectionManager(new EquipmentListCellKeySelectionManager());
equipmentCombo.removeAllItems();
equipmentTypes = new Vector<EquipmentType>();
for (EquipmentType eq : masterEquipmentList) {
if (UnitUtil.isLegal(getTank(), eq)) {
equipmentTypes.add(eq);
equipmentCombo.addItem(eq);
}
}
}
Aggregations