public boolean displayPopup(Component editor) {
            if (editor != this.editor) {
                if (this.editor != null) {
                	this.editor.removeComponentListener(this);
                }

                if (editor != null) {
                    editor.addComponentListener(this);
                }
            }

            this.editor = editor;
            if (editor != null) {
                showPopup(editor);
            } else if (popup.isVisible()) {
                popup.setVisible(false);
                return true;
            }

            return false;
        }
public boolean displayPopup(Component editor)