aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-03-25 06:45:23 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-03-25 06:45:23 +0000
commit9b95cee697dd90a4a01902b5ded4ff8133b02f32 (patch)
tree19d6e889078d843832f420de2e8eb01000c108dc
parentcd39fc1318374f60f60aa520d408b2da2d161f5c (diff)
downloadgcc-9b95cee697dd90a4a01902b5ded4ff8133b02f32.zip
gcc-9b95cee697dd90a4a01902b5ded4ff8133b02f32.tar.gz
gcc-9b95cee697dd90a4a01902b5ded4ff8133b02f32.tar.bz2
Component.java (processEvent): Check ComponentEvent after KeyEvent.
* java/awt/Component.java (processEvent): Check ComponentEvent after KeyEvent. From-SVN: r51301
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/awt/Component.java4
2 files changed, 7 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 1f8e835..ae7ea57 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-25 Tom Tromey <tromey@redhat.com>
+
+ * java/awt/Component.java (processEvent): Check ComponentEvent
+ after KeyEvent.
+
2002-03-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/io/PushbackReader.java: Reformat.
diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java
index 034390c..9ea43ed 100644
--- a/libjava/java/awt/Component.java
+++ b/libjava/java/awt/Component.java
@@ -1858,12 +1858,12 @@ public abstract class Component implements ImageObserver, MenuContainer,
else
processMouseEvent((MouseEvent) e);
}
- else if (e instanceof ComponentEvent)
- processComponentEvent((ComponentEvent) e);
else if (e instanceof KeyEvent)
processKeyEvent((KeyEvent) e);
else if (e instanceof InputMethodEvent)
processInputMethodEvent((InputMethodEvent) e);
+ else if (e instanceof ComponentEvent)
+ processComponentEvent((ComponentEvent) e);
else if (e instanceof HierarchyEvent)
{
if (e.id == HierarchyEvent.HIERARCHY_CHANGED)