@Override
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                if (GUI.getChatInputPane().getText().isEmpty()) {
                    CIPCut.setForeground(Color.gray);
                    CIPPaste.setForeground(Color.black);
                    CIPCopy.setForeground(Color.gray);
                    CIPSelectAll.setForeground(Color.gray);
                    CIPClear.setForeground(Color.gray);
                } else {
                    CIPCut.setForeground(Color.black);
                    CIPPaste.setForeground(Color.black);
                    CIPCopy.setForeground(Color.black);
                    CIPSelectAll.setForeground(Color.black);
                    CIPClear.setForeground(Color.black);
                }
            }