private void buildTabs(){
  SearchTab searchTab=new SearchTab();
  TransfersTab transfersTab=new TransfersTab(getBTDownloadMediator());
  LibraryTab libraryTab=new LibraryTab(getLibraryMediator());
  TABS.put(Tabs.SEARCH,searchTab);
  TABS.put(Tabs.TRANSFERS,transfersTab);
  TABS.put(Tabs.LIBRARY,libraryTab);
  SearchTransfersTab searchTransfers=new SearchTransfersTab(searchTab,transfersTab);
  TABS.put(Tabs.SEARCH_TRANSFERS,searchTransfers);
  TABBED_PANE.setPreferredSize(new Dimension(10000,10000));
  addTabs(UI_SEARCH_TRANSFERS_SPLIT_VIEW.getValue());
  TABBED_PANE.setRequestFocusEnabled(false);
}

private void buildTabs ( ) { SearchTab searchTab = new SearchTab ( ) ; TransfersTab transfersTab = new TransfersTab ( getBTDownloadMediator ( ) ) ; LibraryTab libraryTab = new LibraryTab ( getLibraryMediator ( ) ) ; TABS . put ( Tabs . SEARCH , searchTab ) ; TABS . put ( Tabs . TRANSFERS , transfersTab ) ; TABS . put ( Tabs . LIBRARY , libraryTab ) ; SearchTransfersTab searchTransfers = new SearchTransfersTab ( searchTab , transfersTab ) ; TABS . put ( Tabs . SEARCH_TRANSFERS , searchTransfers ) ; TABBED_PANE . setPreferredSize ( new Dimension ( 10000 , 10000 ) ) ; addTabs ( UI_SEARCH_TRANSFERS_SPLIT_VIEW . getValue ( ) ) ; TABBED_PANE . setRequestFocusEnabled ( false ) ; }
build the tab structure based on advertising mode and windows
