Bug#452038: kaffe-common: setState on a CheckboxMenuItem triggers an ItemEvent

Dalibor Topic dalibor.topic at googlemail.com
Mon Dec 31 01:14:44 UTC 2007


Mark Longair wrote:
> Package: kaffe-common
> Version: 2:1.1.8-3
> Severity: normal
>
>
> Calling setState on a CheckboxMenuItem (with the GTK awt peer) causes
> an ItemEvent to be triggered, although Sun's documentation says that
> this should not happen:
>
>   "Note that this method should be primarily used to initialize the
>    state of the check box menu item. Programmatically setting the state
>    of the check box menu item will not trigger an ItemEvent. The only
>    way to trigger an ItemEvent is by user interaction."
>
>   http://java.sun.com/j2se/1.4.2/docs/api/java/awt/CheckboxMenuItem.html#setState(boolean)
>   
Thanks for the bug report. I tried to reproduce it and I couldn't. Could
you write a small test case for the bug that shows the bug?

cheers,
dalibor topic






More information about the pkg-java-maintainers mailing list