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

Tom Hawtin Thomas.Hawtin at Sun.COM
Tue Mar 3 19:01:34 UTC 2009


Alexander Potochkin wrote:

> 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.

(I prefer option 3, btw.)

Tom Hawtin



More information about the swing-dev mailing list