html issues with images in JTable
问题 I have extendeded AbstractTableModel to create a custom TableModel. The reason for doing this is to bind a hashmap to a JTable. Within my TableModel, on one of the rows I am returning html code like this: @Override public Object getValueAt(int rowIndex, int columnIndex) { switch (columnIndex) { case 0: String sTest = "<div style=\"margin-left:100px;\"><img src='" + new ImageIcon(Wds.class.getResource("/resources/video.png"))+ "'</div>"; return "<html>" + sTest + sTest + "hello" + "</html>";