I'm new to Java and I have created a table and I want to insert an image in the JTable, how would I do that? I did google this all day yesterday and found a lot of solutions but I'm having a hard time getting it work in my table. Here is my code. 

Code:
table = new javax.swing.JTable();
table.setBackground(new java.awt.Color(255, 255, 204));
table.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null},
{null, null},
{null, null},
},
new String [] {
"Section 1", "Section 2"
}
) {
boolean[] canEdit = new boolean [] {
false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
table.setRowHeight(50);
pane.setViewportView(table);
table.getColumnModel().getColumn(0).setResizable(false);
table.getColumnModel().getColumn(1).setResizable(false);







