diff options
Diffstat (limited to 'libjava/java/awt/Checkbox.java')
-rw-r--r-- | libjava/java/awt/Checkbox.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/java/awt/Checkbox.java b/libjava/java/awt/Checkbox.java index 4212da9..1268fe8 100644 --- a/libjava/java/awt/Checkbox.java +++ b/libjava/java/awt/Checkbox.java @@ -365,6 +365,18 @@ processItemEvent(ItemEvent event) item_listeners.itemStateChanged(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); +} + /*************************************************************************/ /** |