code: public void paintComponent(Graphics g)
      {
          super.paintComponent(g);        // Just in case the image is bad/not loaded
  
          if (m_image instanceof ImageIcon)
              ((ImageIcon)m_image).paintIcon(this, g, 0, 0);
      }
docs: Tile this image on the background, using this background color.
  @param g The graphics object.