4
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);

これは私のコードです。ただし、画像は表示されません。どこが間違っていたのかを知るために助けが必要です。

4

1 に答える 1

4
于 2012-04-27T07:08:27.107 に答える