public void paint(Graphics g){
  g.drawImage(splashImage,0,0,this);
  if (!paintCalled) {
    paintCalled=true;
synchronized (this) {
      notifyAll();
    }
  }
}

public void paint ( Graphics g ) { g . drawImage ( splashImage , 0 , 0 , this ) ; if ( ! paintCalled ) { paintCalled = true ; synchronized ( this ) { notifyAll ( ) ; } } }
paints the image on the window .
