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

Ricardo Garcia thrawnkb at gmail.com
Thu Dec 10 10:33:03 UTC 2009


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

-- 
Chipu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20091210/1bc39edf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComboBoxModelExtended.java
Type: application/octet-stream
Size: 5386 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20091210/1bc39edf/ComboBoxModelExtended.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EditableComboBoxModel.java
Type: application/octet-stream
Size: 1491 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20091210/1bc39edf/EditableComboBoxModel.java>


More information about the swing-dev mailing list