0
public class image {
JFrame pen = new JFrame();
public image() {
pen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pen.setBounds(150, 100, 613, 231);
pen.setVisible(true);
try {
URL url = new URL("http://images2.layoutsparks.com/1/56178/castle-stone-window-grey.jpg");
BufferedImage bI = ImageIO.read(url);
ImageIO.write(bI, "jpg", new File("C:\\kibAr.jpg"));
} catch (IOException e) {
e.printStackTrace();
}
}
}
我沒有錯誤,但不工作,爲什麼?(我想使用的BufferedImage)的Java的BufferedImage不行
以及我如何設置窗口背景這個圖形?
索裏對我的英語不好
沒有人能猜到_don't WORK_的意義。請具體說明。 – Apurv 2013-03-12 11:19:33