summaryrefslogtreecommitdiff
path: root/java/awt/Choice.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/awt/Choice.java')
-rw-r--r--java/awt/Choice.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/awt/Choice.java b/java/awt/Choice.java
index 9fbcd9343..47ca540bd 100644
--- a/java/awt/Choice.java
+++ b/java/awt/Choice.java
@@ -556,6 +556,17 @@ processEvent(AWTEvent event)
super.processEvent(event);
}
+void
+dispatchEventImpl(AWTEvent e)
+{
+ if (e.id <= ItemEvent.ITEM_LAST
+ && e.id >= ItemEvent.ITEM_FIRST
+ && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))
+ processEvent(e);
+ else
+ super.dispatchEventImpl(e);
+}
+
/*************************************************************************/
/**