public MouseEvent( Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); if ((button < NOBUTTON) || (button > BUTTON3)) { // awt.18B=Invalid button value throw new IllegalArgumentException(Messages.getString("awt.18B")); // $NON-NLS-1$ } this.popupTrigger = popupTrigger; this.clickCount = clickCount; this.button = button; this.x = x; this.y = y; if (getModifiers() != 0) { setModifiersEx(); } else if (getModifiersEx() != 0) { setModifiers(); } else if ((button != NOBUTTON) && ((id >= MOUSE_CLICKED) && (id <= MOUSE_RELEASED))) { setButtonModifiers(); } }