[PATCH] Fix for Choice

Fernando Nasser fnasser@redhat.com
Tue Dec 23 19:31:00 GMT 2003


Tom Tromey wrote:
>>>>>>"Fernando" == Fernando Nasser <fnasser@redhat.com> writes:
> 
> 
> Fernando> The appearance is still not quite right.  Tom Fitzsimmons
> Fernando> and I even believe it should not be implemented using the
> Fernando> Gtk widgets it is currently using but at least this patch
> Fernando> makes it _behave_ like the one in the Sun SDK.
> 
> Ok, thanks.
> 


Thank you.

Just for the record, with the improved mauve ChoiceTest I found a couple of 
undocumented behaviors of the Sun AWT Choice.  It does generate an ItemEvent 
when the first element is added and does _not_ generate one when the last one is 
removed.  I do not necessarily agree with the design but I've adjusted our code 
to match.  The attached Choice.java file was the one actually checked in and is 
very slightly different from the one post (just the two changes above).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CHOICE2.PATCH
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031223/c680cf78/attachment.ksh>


More information about the Java-patches mailing list