public void rebuild(){
        topPanel.removeAll();
        bottomPanel.removeAll();
        topTabs = new ArrayList<TabButton>();
        bottomTabs = new ArrayList<TabButton>();
        
        for(DataTabButton tabData : tabsDatabase){
            TabButton tab = new TabButton(tabData);
            if(tabData.orientation == 0){
                topTabs.add(tab);
            }
            else if(tabData.orientation == 1){
                bottomTabs.add(tab);
            }
        }
    }