parentPanel.addUser(tabbedPane, name);
parentPanel.addUser(tabbedPane, user.getName());
            public void mouseClicked(MouseEvent me){                if (me.getClickCount()==2){                    User user = (User)userList.getSelectedValue();                    if (!user.getName().equalsIgnoreCase(parentPanel.getNickname())){                        JTabbedPane tabbedPane = parentPanel.getTabbedPane();                        for (int i = 1; i < tabbedPane.getTabCount(); i++) {                            if (tabbedPane.getTitleAt(i).equalsIgnoreCase(name)) {                                return;                            }                        }                        parentPanel.addUser(tabbedPane, name);                        tabbedPane.setSelectedIndex(tabbedPane.getTabCount() -                            1);                    }                }            }