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