Search in sources :

Example 1 with EquipmentTab

use of megameklab.com.ui.Vehicle.tabs.EquipmentTab in project megameklab by MegaMek.

the class MainUI method reloadTabs.

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

Aggregations

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