@Override
                public void itemStateChanged(ItemEvent e) {
                    if (field.getText().isEmpty()) return;
                    for (int i = 0; i < tabbedPane.getTabCount(); i++) {
                        ChannelPanel channel = (ChannelPanel) tabbedPane.getComponentAt(i);
                        DefaultHighlighter highlighter = (DefaultHighlighter) channel.chatPane.getHighlighter();
                        if (!channel.isShowing()) highlighter.removeAllHighlights();
                        channel.lastSearchIndex = -1;
                    }
                    findButton.getActionListeners()[0].actionPerformed(null);
                }