use of megameklab.com.ui.Mek.tabs.PreviewTab 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);
previewTab = new PreviewTab(this);
statusbar = new StatusBar(this);
equipmentTab = new EquipmentTab(this);
buildTab = new BuildTab(this, equipmentTab);
structureTab.addRefreshedListener(this);
equipmentTab.addRefreshedListener(this);
buildTab.addRefreshedListener(this);
statusbar.addRefreshedListener(this);
configPane.addTab("Structure/Armor", structureTab);
// ConfigPane.addTab("Armor", armorTab);
configPane.addTab("Equipment", equipmentTab);
// ConfigPane.addTab("Weapons", weaponTab);
configPane.addTab("Assign Criticals", buildTab);
configPane.addTab("Preview", previewTab);
// masterPanel.add(header);
masterPanel.add(configPane, BorderLayout.CENTER);
masterPanel.add(statusbar, BorderLayout.SOUTH);
refreshHeader();
this.repaint();
}
Aggregations