public VolatileImage createVolatileImage(int width,int height){
  ComponentPeer peer=this.peer;
  if (peer instanceof LightweightPeer) {
    if (parent != null) {
      return parent.createVolatileImage(width,height);
    }
 else {
      return null;
    }
  }
 else {
    return (peer != null) ? peer.createVolatileImage(width,height) : null;
  }
}

public VolatileImage createVolatileImage ( int width , int height ) { ComponentPeer peer = this . peer ; if ( peer instanceof LightweightPeer ) { if ( parent != null ) { return parent . createVolatileImage ( width , height ) ; } else { return null ; } } else { return ( peer != null ) ? peer . createVolatileImage ( width , height ) : null ; } }
creates a volatile off - screen drawable image to be used for double buffering .
