I am trying to add a row with an image to a JTable. The code below displays only the textual information from the ImageIcon.
DefaultTableModel model = new DefaultTableModel();
JTable chat = new JTable(model);
model.addColumn(null);
model.addRow(new Object[]{"v1"});
model.addRow(new Object[]{emojiImages.get("smile.png")});
ImageIcon for DefaultTableModel In this thread, tenorsax says "Override getColumnClass() and return Icon.class." I have looked at his linked resource about Editors and Renderers, but I am having trouble figuring out how to apply that.