if (m_MouseList != null) { int modifiers = 0; if (button == 0) modifiers |= MouseEvent.BUTTON1_MASK; else if (button == 1) modifiers |= MouseEvent.BUTTON2_MASK; else modifiers |= MouseEvent.BUTTON3_MASK;  MouseEvent evt = new MouseEvent(getDummyComponent(), 0, 0, modifiers, xp, yp, clicks, button == 1); for (Enumeration enu = m_MouseList.elements(); enu.hasMoreElements(); ) { MouseListener listener = (MouseListener)enu.nextElement(); if (up) listener.mouseReleased(evt); else listener.mousePressed(evt); } } }
	private void notifyMouseListeners(int button, int mask, int xp, int yp) {		int clicks = (mask & MOUSE_BTN_DOUBLE) != 0 ? 2 : 1;		boolean up = (mask & MOUSE_BTN_UP) != 0;		if (m_ActList != null && clicks == 1 && up == false) {			ActionEvent evt = null;			if (button == 0) evt = new ActionEvent(this,0,"Left");			else if (button == 1) evt = new ActionEvent(this,0,"Right");			else evt = new ActionEvent(this,0,"Middle");			for (Enumeration enum = m_ActList.elements(); enum.hasMoreElements(); ) {				ActionListener listener = (ActionListener)enum.nextElement();				listener.actionPerformed(evt);			}		}