Search in sources :

Example 1 with PreviewTab

use of megameklab.com.ui.Aero.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 DropshipStructureTab(this);
    previewTab = new PreviewTab(this);
    statusbar = new StatusBar(this);
    equipmentTab = new EquipmentTab(this);
    buildTab = new DropshipBuildTab(this, equipmentTab);
    transportTab = new TransportTab(this);
    structureTab.addRefreshedListener(this);
    equipmentTab.addRefreshedListener(this);
    buildTab.addRefreshedListener(this);
    transportTab.addRefreshedListener(this);
    statusbar.addRefreshedListener(this);
    configPane.addTab("Structure/Armor", structureTab);
    configPane.addTab("Equipment", equipmentTab);
    configPane.addTab("Assign Criticals", buildTab);
    configPane.addTab("Transport Bays", transportTab);
    configPane.addTab("Preview", previewTab);
    masterPanel.add(configPane, BorderLayout.CENTER);
    masterPanel.add(statusbar, BorderLayout.SOUTH);
    refreshHeader();
    this.repaint();
}
Also used : BorderLayout(java.awt.BorderLayout) DropshipStructureTab(megameklab.com.ui.Dropship.tabs.DropshipStructureTab) EquipmentTab(megameklab.com.ui.Aero.tabs.EquipmentTab) TransportTab(megameklab.com.ui.Dropship.tabs.TransportTab) DropshipBuildTab(megameklab.com.ui.Dropship.tabs.DropshipBuildTab) PreviewTab(megameklab.com.ui.Aero.tabs.PreviewTab)

Example 2 with PreviewTab

use of megameklab.com.ui.Aero.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("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.Aero.tabs.BuildTab) BorderLayout(java.awt.BorderLayout) EquipmentTab(megameklab.com.ui.Aero.tabs.EquipmentTab) StructureTab(megameklab.com.ui.Aero.tabs.StructureTab) PreviewTab(megameklab.com.ui.Aero.tabs.PreviewTab)

Aggregations

BorderLayout (java.awt.BorderLayout)2 EquipmentTab (megameklab.com.ui.Aero.tabs.EquipmentTab)2 PreviewTab (megameklab.com.ui.Aero.tabs.PreviewTab)2 BuildTab (megameklab.com.ui.Aero.tabs.BuildTab)1 StructureTab (megameklab.com.ui.Aero.tabs.StructureTab)1 DropshipBuildTab (megameklab.com.ui.Dropship.tabs.DropshipBuildTab)1 DropshipStructureTab (megameklab.com.ui.Dropship.tabs.DropshipStructureTab)1 TransportTab (megameklab.com.ui.Dropship.tabs.TransportTab)1