方法一:JLabel label = new JLabel(new ImageIcon("图片路径"));方法二:重载JComponent里面的 paintComponent()方法,在里面用grahics.drawImage()绘制图象;