this.image = image; MediaTracker mt = new MediaTracker(this); mt.addImage( image, 0 ); try { mt.waitForAll(); } catch (InterruptedException e) { /* error */ }; size = new Dimension ( image.getWidth(null), image.getHeight(null) ); setSize( size );
return size;
g.drawImage( image, 0, 0, this );
paint(g);