jdk/src/java.desktop/share/classes/javax/swing/ImageIcon.java
changeset 32865 f9cb6e427f9e
parent 26037 508779ce6619
child 33253 78e735319356
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
    72     /* Keep references to the filename and location so that
    72     /* Keep references to the filename and location so that
    73      * alternate persistence schemes have the option to archive
    73      * alternate persistence schemes have the option to archive
    74      * images symbolically rather than including the image data
    74      * images symbolically rather than including the image data
    75      * in the archive.
    75      * in the archive.
    76      */
    76      */
    77     transient private String filename;
    77     private transient String filename;
    78     transient private URL location;
    78     private transient URL location;
    79 
    79 
    80     transient Image image;
    80     transient Image image;
    81     transient int loadStatus = 0;
    81     transient int loadStatus = 0;
    82     ImageObserver imageObserver;
    82     ImageObserver imageObserver;
    83     String description = null;
    83     String description = null;
    86      * Do not use this shared component, which is used to track image loading.
    86      * Do not use this shared component, which is used to track image loading.
    87      * It is left for backward compatibility only.
    87      * It is left for backward compatibility only.
    88      * @deprecated since 1.8
    88      * @deprecated since 1.8
    89      */
    89      */
    90     @Deprecated
    90     @Deprecated
    91     protected final static Component component;
    91     protected static final Component component;
    92 
    92 
    93     /**
    93     /**
    94      * Do not use this shared media tracker, which is used to load images.
    94      * Do not use this shared media tracker, which is used to load images.
    95      * It is left for backward compatibility only.
    95      * It is left for backward compatibility only.
    96      * @deprecated since 1.8
    96      * @deprecated since 1.8
    97      */
    97      */
    98     @Deprecated
    98     @Deprecated
    99     protected final static MediaTracker tracker;
    99     protected static final MediaTracker tracker;
   100 
   100 
   101     static {
   101     static {
   102         component = AccessController.doPrivileged(new PrivilegedAction<Component>() {
   102         component = AccessController.doPrivileged(new PrivilegedAction<Component>() {
   103             public Component run() {
   103             public Component run() {
   104                 try {
   104                 try {
   142     /**
   142     /**
   143      * Id used in loading images from MediaTracker.
   143      * Id used in loading images from MediaTracker.
   144      */
   144      */
   145     private static int mediaTrackerID;
   145     private static int mediaTrackerID;
   146 
   146 
   147     private final static Object TRACKER_KEY = new StringBuilder("TRACKER_KEY");
   147     private static final Object TRACKER_KEY = new StringBuilder("TRACKER_KEY");
   148 
   148 
   149     int width = -1;
   149     int width = -1;
   150     int height = -1;
   150     int height = -1;
   151 
   151 
   152     /**
   152     /**