menuItemMap.clear();
reverseMenuMap.clear();
// create new ContextMenuEvent
ContextMenuEvent ctxEvent = new ContextMenuEvent(event, cell);
// Tell the context menu listeners that we are about to display a
// context menu, giving listeners an opportunity to make adjustments
ContextMenuManager.getContextMenuManager().fireContextMenuEvent(ctxEvent);
// get the settings from the event, possibly adjusted by listeners
ContextMenuInvocationSettings settings = ctxEvent.getSettings();
// Adjust name of menu (by default, this is the cell's name)
JPanel titlePanel = new JPanel();
titlePanel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));
titlePanel.setBackground(WL_BLUE);
JLabel title = new JLabel("<html><b>" + settings.getMenuName() + "</b></html>");