@Override
          public void mousePressed(final MouseEvent e) {
            if (!e.isPopupTrigger() && SwingUtilities.isLeftMouseButton(e)) {
              close();
            }
          }
@Override
          public void mousePressed(final MouseEvent e)