@Override
                public void actionPerformed(ActionEvent e) {
                    try {
                        channel.connection.send("LIST");
                        Thread.sleep(100);
                        model.modelData.clear();
                        model.fireTableDataChanged();
                        while (channel.connection.currentlyUpdating) {
                            Thread.sleep(100);
                        }

                        if (channel.connection.doneUpdating) {
                            for (ListChannel channelList1 : channel.connection.channelList) {
                                model.addRow(channelList1);
                            }
                            channel.connection.doneUpdating = false;
                        }
                    } catch (IOException | BadLocationException | InterruptedException ex) {
                        Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }