/** Loads the image. */ public static void loadImage() { if (fileImage != null) return; // already loaded this AppLib.printDebug("Loading introduction image"); ImageIcon fi = AppLib.loadClassImage("images/title.png"); // wait for it... while (fi.getImageLoadStatus() == MediaTracker.LOADING) AppLib.sleep(20L); // load me! fileImage = fi.getImage(); screenImage = screenShot(AppLib.winInfo.getScreenSize()); }
/** * Gets the not loading icon. * * @return the not loading icon. Loads it if necessary. */ public static Icon getNotLoadingImage() { if (notLoading == null) notLoading = AppLib.loadClassImage("images/nloading.gif"); return notLoading; }
/** * Gets the loading icon. * * @return the loading icon. Loads it if necessary. */ public static Icon getLoadingImage() { if (loading == null) loading = AppLib.loadClassImage("images/loading.gif"); return loading; }