Graphics g = mf.getGraphics(); Image img = new ImageIcon("book1.png").getImage(); g.drawImage(img, 2, 2, null);