1.替换标题图片
Image img=Toolkit.getDefaultToolkit().getImage("img/2.jpg"); //用以接收图片的URL
setIconImage(img);//获得图片
2.Jpanel插入背景图片
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;
public class BackgroundPanel extends JPanel{
/**
*
*/
private static final