public void paint(Graphics g){ Graphics2D g2=(Graphics2D)g;//casting to 2D g2.drawImage(new ImageIcon(/path/to/image).getImage(),220,220,this); }