1 Aug 2008 2:54 AM #1
Icon as Table Cell Content
I have a Table that loads is data (? extends BaseModel) from the server. The data class contains a string field called 'mediaType' and I would like to draw an icon (depending on mediaType) to the first cell of each table row. What would be the simplest way to accomplish this?
1 Aug 2008 3:30 AM #2col.setRenderer(new CellRenderer()
public String render(Component item, String property, Object value)
1 Aug 2008 4:46 AM #3