1. Thumbnail inside JTable coderanch.comBufferedImage offers software acceleration. import java.awt.*; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.table.*; public class TableTest { ImageIcon[] icons; public TableTest(BufferedImage[] source) { icons = getScaledIcons(source); } private JTable getTable() { int rows = 4; int cols = 4; String[] colNames = { "column 1", "column 2", "Image", "column 4" }; Object[][] data = new Object[rows][cols]; ... |
2. Showing a thumbnail in JTable coderanch.com |