public void updateTabInfo() {
        if (GUI.getTabbedPane().getTabCount() == 0) {
            GUI.getFrame().setTitle(GUI.appName);
            GUI.getTabInfo().setText("Disconnected    ");
            return;
        }
        if (!connection.isConnected) {
            GUI.getTabInfo().setText("Disconnected    ");
            return;
        }
        ChannelPanel cc = (ChannelPanel) GUI.getTabbedPane().getSelectedComponent();
        int sel = GUI.getTabbedPane().getSelectedIndex();
        GUI.getTabbedPane().setIconAt(sel, null);

        if (this.isShowing()) {
            String text = "";
            if (ops != 1) text = " ops) ";
            if (ops == 1) text = " op) ";

            String text2 = "";
            if (population == 1) text2 = "nick";
            else text2 = "nicks";

            if (!cc.name.startsWith("#")) {
                GUI.getFrame().setTitle(name + " - " + GUI.appName);
                GUI.getTabInfo().setText(name + "  ");
            } else GUI.getTabInfo().setText(name + " - " + population + " " + text2 + " (" + ops + text + server + "  ");
        }
        GUI.getFrame().setTitle(cc.title + " - " + GUI.appName);
    }