How to add text next to image in jtable?
问题 I have a three column jtable and want to have the first two columns have an Imageicon and a string right next to it. Currently I am displaying the ImageIcons like DefaultTableModel model = new DefaultTableModel(rows, columns) { @Override public Class<?> getColumnClass(int column) { switch (column) { case 0: case 1: return ImageIcon.class; case 2: return String.class; default: return Object.class; } } }; jTable.setModel(model); I did find this but don't know what goes in ... or how to set the