public void insertTab(AbstractTab tab) {
        int index;
        String tip ;
        String title = tab.getTabName();

        if (tab instanceof ServerTab) {
            index = getTabCount();
            tip = "Server " + title;
        } else {
            ServerTab s = tab.getServerTab();
            index = indexOfComponent(s);

            while ( ++index < getTabCount() ) {
                Component c = getComponentAt(index);
                if (c instanceof ServerTab)
                    break;
            }

            tip = "Server " + s.getTabName() + ", ";
            tip += (tab instanceof ChannelTab) ? "kanál" : "uživatel";
            tip += " " + title;
        }

        insertTab(title, null, tab, tip, index);
    }