this.picture = this.getImage(this.getCodeBase(), this.getParameter("imagefile")); this.tracker = new MediaTracker(this); this.tracker.addImage(this.picture, 1); Thread play = new Thread(this); play.start();
if (this.tracker.checkID(1, true)) { g.drawImage(this.picture, 0, 0, this); } else { g.drawString("Loading Picture. Please hang on", 25, 50); }
try { this.tracker.waitForID(1); this.repaint(); } catch (InterruptedException ie) { }