if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { } else {
if (((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) || e.isAltDown()) {
  private void addPopup() {    addMouseListener(new MouseAdapter() {	public void mouseClicked(MouseEvent e) {	  if ((e.getModifiers() & InputEvent.BUTTON1_MASK)	      == InputEvent.BUTTON1_MASK) {	  } else {	    JPopupMenu gcMenu = new JPopupMenu();	    JMenuItem availMem = new JMenuItem("Available memory");	    availMem.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent ee) {		  System.gc();		  Runtime currR = Runtime.getRuntime();		  long freeM = currR.freeMemory();		  logMessage("Available memory : "+freeM+" bytes");		  statusMessage(freeM + " bytes free");		}	      });	    gcMenu.add(availMem);	    JMenuItem runGC = new JMenuItem("Run garbage collector");	    runGC.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent ee) {		  statusMessage("Running garbage collector");		  System.gc();		  statusMessage("OK");		}	      });	    gcMenu.add(runGC);	    gcMenu.show(LogPanel.this, e.getX(), e.getY());	  }	}      });  }