<Swing Dev> [PATCH] 100153: Generics: JComboBox

Florian Brunner fbrunnerlist at gmx.ch
Sun Oct 10 14:21:23 UTC 2010


Hi Pavel,

here is a patch to "generify" JComboBox along with: ComboBoxEditor, ComboBoxModel,
DefaultComboBoxModel and MutableComboBoxModel.

I fixed the BasicComboBoxEditor as I proposed in my last post.

MutableComboBoxModel.removeElement is not generified currently and thus still takes an Object as argument. This is consistent with the Collection Framework (eg. java.util.List.remove). Please tell me if you prefer this method to take a generic parameter as well.


I also created a new issue in the OpenJDK Bugzilla system:
https://bugs.openjdk.java.net/show_bug.cgi?id=100153

Regards,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swing-patch-generics-jcombobox-20101010.patch
Type: text/x-patch
Size: 28442 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20101010/47e34d8c/swing-patch-generics-jcombobox-20101010.patch>


More information about the swing-dev mailing list