public QueryPanel addQuery(String nick, boolean select) {
	    int index = indexOfTab(nick);
	    if (index == -1) {
	      QueryPanel queryPanel = new QueryPanel(this, nick);
	      tabs.add(queryPanel, nick);
	      if (select)
	        tabs.setSelectedComponent(queryPanel);
	      tabs.revalidate();
	      if (!select)
	        doSoundHighlight();
	      return queryPanel;
	    } else {
	      Component component = tabs.getComponentAt(index);
	      return (QueryPanel)component;
	    }
	  }