/*
@test %I% %E%
@bug 6315717
@summary verifies that MouseEvent CTOR accepts extra mouse button numbers
@author Andrei Dmitriev : area=awt.event
@run main AcceptExtraButton
*/
//package acceptextrabutton;
static int [] eventID = new int []{MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED, MouseEvent.MOUSE_CLICKED};
AcceptExtraButton f = new AcceptExtraButton();
f.setVisible(true);
0, //MouseEvent.BUTTON1_DOWN_MASK, modifiers
100, 100, // x, y
150, 150, // x, y on screen
1, //clickCount
false, //popupTrigger
button );// MouseEvent.NOBUTTON : button
}
}
public void mousePressed(MouseEvent e) {
}
public void mouseReleased(MouseEvent e) {
}
public void mouseClicked(MouseEvent e) {
}
};
f.addMouseListener(ma1);
}
}