测试博客

2019-04-15 12:54发布

Image image = new ImageIcon("D:/pic/2.jpg").getImage(); panel = new pic(image); add(panel);
Image image = new ImageIcon("D:/pic/2.jpg").getImage();
panel = new pic(image);
add(panel);