From 8f93cbfc87ce3bd8711c6883337282eb1b4530b4 Mon Sep 17 00:00:00 2001 From: malenkov Date: Mon, 14 Oct 2013 14:13:48 +0400 Subject: [PATCH] 7035495: javax.swing.ImageIcon spec should be clarified Reviewed-by: alexsch --- src/share/classes/javax/swing/ImageIcon.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/share/classes/javax/swing/ImageIcon.java b/src/share/classes/javax/swing/ImageIcon.java index 236d682d9..b744d5aa5 100644 --- a/src/share/classes/javax/swing/ImageIcon.java +++ b/src/share/classes/javax/swing/ImageIcon.java @@ -80,8 +80,20 @@ public class ImageIcon implements Icon, Serializable, Accessible { 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 { -- GitLab