i = getImage (getDocumentBase(), "rosey.jpg"); MediaTracker mt = new MediaTracker (this); mt.addImage (i, 0); try { mt.waitForAll(); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println ("Loaded"); j = createImage (new FilteredImageSource (i.getSource(), new BlurFilter())); System.out.println ("Created");
g.drawImage (i, 10, 10, this); // regular if (j != null) g.drawImage (j, 250, 10, this); // average