@Override
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                if (chatPane.getSelectedText() == null) CPCopy.setForeground(Color.gray);
                    // if (chatPane.getSelectedText().isEmpty()) CPCopy.setForeground(Color.gray);
                else CPCopy.setForeground(Color.black);
            }