public void actionPerformed(ActionEvent e) {
                User nick = userListPane.getSelectedValue();
                if (nick == null) return;
                String nickname = nick.getText();
                if (nickname.equals(Connection.currentNick)) return;
                try {
                    ChannelPanel channel = new ChannelPanel(nickname, nickname, ChannelPanel.this.connection);
                    channel.setRightComponent(null);
                    channel.setDividerSize(0);
                    GUI.getTabbedPane().setSelectedComponent(channel);

                } catch (BadLocationException | IOException ex) {
                    Logger.getLogger(ChannelPanel.class.getName()).log(Level.SEVERE, null, ex);
                }
            }