private void jTabbedPane2MouseClicked(java.awt.event.MouseEvent evt) {
                if (!DarkIRC.channelsList.get(jTabbedPane2.getSelectedIndex()).equals(DarkIRC.currentChan)) {
                        jTabbedPane2.setForegroundAt(jTabbedPane2.getSelectedIndex(), Color.BLACK);
                        Logs.makeLog(DarkIRC.currentChan + ".log", get_text());
                        set_text("");
                        topicField.setText("");
                        DarkIRC.currentChan = DarkIRC.channelsList.get(jTabbedPane2.getSelectedIndex());
                        set_text(Logs.readLog(DarkIRC.currentChan + ".log"));
                        topicField.setText(DarkIRC.channelsList.get(jTabbedPane2.getSelectedIndex()).topic);
                }
                if (jTabbedPane2.getSelectedIndex() == 0) {
                        topicField.setVisible(false);
                        jScrollPane2.setVisible(false);
                } else if (DarkIRC.channelsList.get(jTabbedPane2.getSelectedIndex()).type == Channel.CHANNEL) {
                        topicField.setVisible(true);
                        jScrollPane2.setVisible(true);
                        userListModel.removeAllElements();
                        User[] u = DarkIRC.bot.getUsers(DarkIRC.currentChan.name);
                        for (int i = 0; i < u.length; i++) {
                                userListModel.addElement(u[i].getPrefix() + u[i].getNick());
                        }
                } else {
                        topicField.setVisible(false);
                        jScrollPane2.setVisible(false);
                }
        }