// Also create and add a listener for context menu events
// to perform special processing right before the context
// menu is displayed
if (menuListener == null) {
menuListener = new ContextMenuListener() {
public void contextMenuDisplayed(
ContextMenuEvent event) {
windowMenuDisplayed(event, contextMenuComp);
}