public void initContents(){
  if (sdCurrent != null) {
    Graphics g=vImg.createGraphics();
    g.clearRect(0,0,vImg.getWidth(),vImg.getHeight());
    g.dispose();
  }
}

public void initContents ( ) { if ( sdCurrent != null ) { Graphics g = vImg . createGraphics ( ) ; g . clearRect ( 0 , 0 , vImg . getWidth ( ) , vImg . getHeight ( ) ) ; g . dispose ( ) ; } }
set contents of the current surfacedata to default state ( i . e . clear the background ) .
