public void mouseReleased(final MouseEvent e) {
MenuSelectionManager defaultManager = MenuSelectionManager.defaultManager();
if (defaultManager.componentForPoint(e.getComponent(), e.getPoint()) == null) {
defaultManager.clearSelectedPath();
} else {
defaultManager.processMouseEvent(e);
}
}
public void mouseClicked(final MouseEvent e) {
MenuSelectionManager.defaultManager().processMouseEvent(e);