[kaffe] [PATCH] MOUSE_WHEEL constants in MouseEvent.java

Benja Fallenstein b.fallenstein at gmx.de
Fri May 16 09:20:02 PDT 2003


Hi all,

Kaffe has MouseWheelEvent from Classpath, but the constant 
MouseEvent.MOUSE_WHEEL is missing. Attached is a patch that adds it.

- Benja
-------------- next part --------------
Index: libraries/javalib/java/awt/event/MouseEvent.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/awt/event/MouseEvent.java,v
retrieving revision 1.8
diff -u -r1.8 MouseEvent.java
--- libraries/javalib/java/awt/event/MouseEvent.java	19 Feb 2003 15:27:23 -0000	1.8
+++ libraries/javalib/java/awt/event/MouseEvent.java	16 May 2003 16:17:30 -0000
@@ -22,7 +22,7 @@
 	protected int clickCount;
 	protected boolean isPopupTrigger;
 	final public static int MOUSE_FIRST = 500;
-	final public static int MOUSE_LAST = 506;
+	final public static int MOUSE_LAST = 507;
 	final public static int MOUSE_CLICKED = MOUSE_FIRST;
 	final public static int MOUSE_PRESSED = MOUSE_FIRST + 1;
 	final public static int MOUSE_RELEASED = MOUSE_FIRST + 2;
@@ -30,6 +30,7 @@
 	final public static int MOUSE_ENTERED = MOUSE_FIRST + 4;
 	final public static int MOUSE_EXITED = MOUSE_FIRST + 5;
 	final public static int MOUSE_DRAGGED = MOUSE_FIRST + 6;
+	final public static int MOUSE_WHEEL = MOUSE_FIRST + 7;
 
 	private static final String [] MOUSE_EVENTS = {
 		"MOUSE_CLICKED",


More information about the kaffe mailing list