BufferedImage img = null;
ImageIcon icon = null;
try {
img = ImageIO.read(new File("resources/" + imageString));
} catch (IOException e) {
e.printStackTrace();
}
img = ImageScaler.getScaledImage(img, 35, 35);
icon = new ImageIcon(img);
table.setValueAt(icon, 1, 0);
这是我的代码。但图像不显示。我需要一些帮助来找出我出错的地方。如何在JTable中动态添加图像
因为投了但是图标是用较少的creting渲染 – mKorbel 2012-04-27 14:43:30