src/java.desktop/share/classes/javax/swing/ImageIcon.java

Print this page

        

*** 72,83 **** /* Keep references to the filename and location so that * alternate persistence schemes have the option to archive * images symbolically rather than including the image data * in the archive. */ ! transient private String filename; ! transient private URL location; transient Image image; transient int loadStatus = 0; ImageObserver imageObserver; String description = null; --- 72,83 ---- /* Keep references to the filename and location so that * alternate persistence schemes have the option to archive * images symbolically rather than including the image data * in the archive. */ ! private transient String filename; ! private transient URL location; transient Image image; transient int loadStatus = 0; ImageObserver imageObserver; String description = null;
*** 86,104 **** * Do not use this shared component, which is used to track image loading. * It is left for backward compatibility only. * @deprecated since 1.8 */ @Deprecated ! protected final static Component component; /** * Do not use this shared media tracker, which is used to load images. * It is left for backward compatibility only. * @deprecated since 1.8 */ @Deprecated ! protected final static MediaTracker tracker; static { component = AccessController.doPrivileged(new PrivilegedAction<Component>() { public Component run() { try { --- 86,104 ---- * Do not use this shared component, which is used to track image loading. * It is left for backward compatibility only. * @deprecated since 1.8 */ @Deprecated ! protected static final Component component; /** * Do not use this shared media tracker, which is used to load images. * It is left for backward compatibility only. * @deprecated since 1.8 */ @Deprecated ! protected static final MediaTracker tracker; static { component = AccessController.doPrivileged(new PrivilegedAction<Component>() { public Component run() { try {
*** 142,152 **** /** * Id used in loading images from MediaTracker. */ private static int mediaTrackerID; ! private final static Object TRACKER_KEY = new StringBuilder("TRACKER_KEY"); int width = -1; int height = -1; /** --- 142,152 ---- /** * Id used in loading images from MediaTracker. */ private static int mediaTrackerID; ! private static final Object TRACKER_KEY = new StringBuilder("TRACKER_KEY"); int width = -1; int height = -1; /**