This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: java.awt.event fix


I'm checking this in.

This patch fixes a couple bugs in java.awt.event.  This patch argues
for merging java.awt.event with Classpath; I'll get to that before too
long.

With this patch, the TestAWT program's `close' button dismisses the
window.  There are still bugs with the close button, but at least now
it does something.  AWT in general is still very buggy.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* java/awt/event/MouseEvent.java (modifiers): Removed field.
	(when): Likewise.
	* java/awt/event/InputEvent.java (modifiers, when): Now
	package-private.

Index: java/awt/event/InputEvent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/event/InputEvent.java,v
retrieving revision 1.5
diff -u -r1.5 InputEvent.java
--- java/awt/event/InputEvent.java 2000/12/26 00:25:13 1.5
+++ java/awt/event/InputEvent.java 2002/01/28 06:30:13
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000  Free Software Foundation
+/* Copyright (C) 1999, 2000, 2002  Free Software Foundation
 
    This file is part of libjava.
 
@@ -73,6 +73,6 @@
     consumed = true;
   }
 
-  private long when;
-  private int modifiers;
+  long when;
+  int modifiers;
 }
Index: java/awt/event/MouseEvent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/event/MouseEvent.java,v
retrieving revision 1.3
diff -u -r1.3 MouseEvent.java
--- java/awt/event/MouseEvent.java 2000/07/12 03:32:06 1.3
+++ java/awt/event/MouseEvent.java 2002/01/28 06:30:13
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000  Free Software Foundation
+/* Copyright (C) 2000, 2002  Free Software Foundation
 
    This file is part of libjava.
 
@@ -106,8 +106,6 @@
     this.y += y;
   }
 
-  private long when;
-  private int modifiers;
   private int x;
   private int y;
   private int clickCount;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]