public BackgroundPainter(Image image,boolean fixed,boolean tile){
  m_img=image;
  MediaTracker mt=new MediaTracker(new Container());
  mt.addImage(m_img,0);
  try {
    mt.waitForID(0);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  mt.removeImage(m_img,0);
  m_fixed=fixed;
  m_tiled=tile;
}

public BackgroundPainter ( Image image , boolean fixed , boolean tile ) { m_img = image ; MediaTracker mt = new MediaTracker ( new Container ( ) ) ; mt . addImage ( m_img , 0 ) ; try { mt . waitForID ( 0 ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } mt . removeImage ( m_img , 0 ) ; m_fixed = fixed ; m_tiled = tile ; }
create a new backgroundpainter .
