import java.awt.*; import java.awt.event.*; public class MouseEventIDs { public static void main (String[] args) { MouseEvent mickey; int first, last; first = MouseEvent.MOUSE_FIRST; last = MouseEvent.MOUSE_LAST; System.out.println("Range of MouseEvent ids: " + first +".."+ last); System.out.println(".. and here they are:"); System.out.println(""); for (int i=first; i <= last + 1; i++) { int x,y; long now = System.currentTimeMillis(); x = y = 0; mickey = new MouseEvent(new Button(), i, now, 0, x,y, 0, false); System.out.println(mickey); } } } // End of Class MouseEventIDs