Search in sources :

Example 1 with StructureTab

use of megameklab.com.ui.BattleArmor.tabs.StructureTab in project megameklab by MegaMek.

the class MainUI method reloadTabs.

@Override
public void reloadTabs() {
    masterPanel.removeAll();
    ConfigPane.removeAll();
    masterPanel.setLayout(new BorderLayout());
    structureTab = new StructureTab(this);
    equipTab = new EquipmentTab(this);
    statusbar = new StatusBar(this);
    buildTab = new BuildTab(this);
    structureTab.addRefreshedListener(this);
    equipTab.addRefreshedListener(this);
    buildTab.addRefreshedListener(this);
    ConfigPane.addTab("Structure/Armor", structureTab);
    ConfigPane.addTab("Equipment", equipTab);
    ConfigPane.addTab("Assign Criticals", buildTab);
    masterPanel.add(ConfigPane, BorderLayout.CENTER);
    masterPanel.add(statusbar, BorderLayout.SOUTH);
    refreshHeader();
    this.repaint();
}
Also used : BuildTab(megameklab.com.ui.BattleArmor.tabs.BuildTab) BorderLayout(java.awt.BorderLayout) EquipmentTab(megameklab.com.ui.BattleArmor.tabs.EquipmentTab) StructureTab(megameklab.com.ui.BattleArmor.tabs.StructureTab)

Aggregations

BorderLayout (java.awt.BorderLayout)1 BuildTab (megameklab.com.ui.BattleArmor.tabs.BuildTab)1 EquipmentTab (megameklab.com.ui.BattleArmor.tabs.EquipmentTab)1 StructureTab (megameklab.com.ui.BattleArmor.tabs.StructureTab)1