-
1 Aug 2008 2:54 AM #1
Icon as Table Cell Content
Icon as Table Cell Content
Hi,
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?
--Ville
-
1 Aug 2008 3:30 AM #2
col.setRenderer(new CellRenderer()
{
public String render(Component item, String property, Object value)
{
return"<img src='images/test.jpg'>";
}
});
-
1 Aug 2008 4:46 AM #3


Reply With Quote