I would like to resize an image inside a cell on JTable
.
I am using that code to print the image, it works but without resizing.
do {
Object[] fila = new Object[numcolumnas];
for (int i = 0; i < numcolumnas; i++) {
fila[i] = rs.getObject(i + 1);
byte[] imagedataCover = rs.getBytes("Poster");
format = new ImageIcon(imagedataCover);
fila[0] = new JLabel(format);
}
model.addRow(fila);
setAnchoColumnas();
} while (rs.next());