changeset 10466:54a6e22b749c

7035495: javax.swing.ImageIcon spec should be clarified Reviewed-by: alexsch
author malenkov
date Mon, 14 Oct 2013 14:13:48 +0400
parents 9f49b055e983
children 5e0ed469c36a
files src/share/classes/javax/swing/ImageIcon.java
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/ImageIcon.java	Mon Oct 14 13:59:38 2013 +0400
+++ b/src/share/classes/javax/swing/ImageIcon.java	Mon Oct 14 14:13:48 2013 +0400
@@ -80,8 +80,20 @@
     ImageObserver imageObserver;
     String description = null;
 
-    // Fields for twisted backward compatibility only. DO NOT USE.
+    /**
+     * 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 {