<Swing Dev> [PATCH] 6179357: Generics: JList

Pavel Porvatov Pavel.Porvatov at Sun.COM
Thu Dec 10 13:58:10 UTC 2009


Hi Ricardo,
> I did a workaround for solving this issue: generify an editable jcombobox
> The way i solved is by allowing only a generic type that has a 
> constructor that accept a single string, so the model can create new 
> instances of that class
>
> I attach the code, maybe it can be useful
Thanks for your example!

You generified the getSelectedItem() method, but we can't do it as I 
explained in the previous mail. As a result we don't need methods like 
ComboBoxModelExtended#getItemClass().

Regards, Pavel



More information about the swing-dev mailing list