<Swing Dev> 6179357: Generics: JList: ListCellRenderer & prototypeCellValue

Florian Brunner fbrunnerlist at gmx.ch
Tue Mar 3 23:08:54 UTC 2009


Ok, here is a first sample.

It's really small, maybe not 100% real-world, but should be useful to show what can be gained from 
generics.

-Florian

Am Dienstag, 3. März 2009 schrieb Alexander Potochkin:
> Hello Tom
>
> It's nice to see you here
>
> >> Could you please provide a complete example of a JList
> >> with a custom ListCellRenderer that proves that renderer should be
> >> generified
> >
> > I bet if you used NetBeans to find implementations of ListCellRenderer
> > even within the JDK most useful implementations would cast the value
> > argument.
>
> anyway, it is always better to have a fixed set of examples to discuss
>
> > (I prefer option 3, btw.)
>
> Thanks
> alexp
>
> > Tom Hawtin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Participant.java
Type: text/x-java
Size: 755 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090304/199fdf57/Participant.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListSample1Frame.form
Type: application/xml
Size: 8077 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090304/199fdf57/ListSample1Frame.form>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListSample1Frame.java
Type: text/x-java
Size: 9756 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090304/199fdf57/ListSample1Frame.java>


More information about the swing-dev mailing list