< prev index next >
src/java.desktop/share/classes/javax/swing/ImageIcon.java
Print this page
@@ -58,11 +58,11 @@
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
*
* @author Jeff Dinkins
* @author Lynn Monsanto
* @since 1.2
@@ -176,11 +176,11 @@
* (The string is converted to an URL, so the forward-slash works
* on all systems.)
* For example, specify:
* <pre>
* new ImageIcon("images/myImage.gif") </pre>
- * The description is initialized to the <code>filename</code> string.
+ * The description is initialized to the {@code filename} string.
*
* @param filename a String specifying a filename or path
* @see #getDescription
*/
@ConstructorProperties({"description"})
@@ -364,12 +364,12 @@
public int getImageLoadStatus() {
return loadStatus;
}
/**
- * Returns this icon's <code>Image</code>.
- * @return the <code>Image</code> object for this <code>ImageIcon</code>
+ * Returns this icon's {@code Image}.
+ * @return the {@code Image} object for this {@code ImageIcon}
*/
@Transient
public Image getImage() {
return image;
}
@@ -408,14 +408,14 @@
}
/**
* Paints the icon.
* The top-left corner of the icon is drawn at
- * the point (<code>x</code>, <code>y</code>)
- * in the coordinate space of the graphics context <code>g</code>.
+ * the point ({@code x}, {@code y})
+ * in the coordinate space of the graphics context {@code g}.
* If this icon has no image observer,
- * this method uses the <code>c</code> component
+ * this method uses the {@code c} component
* as the observer.
*
* @param c the component to be used as the observer
* if this icon has no image observer
* @param g the graphics context
@@ -579,21 +579,21 @@
return accessibleContext;
}
/**
* This class implements accessibility support for the
- * <code>ImageIcon</code> class. It provides an implementation of the
+ * {@code ImageIcon} class. It provides an implementation of the
* Java Accessibility API appropriate to image icon user-interface
* elements.
* <p>
* <strong>Warning:</strong>
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
* @since 1.3
*/
@SuppressWarnings("serial") // Same-version serialization only
protected class AccessibleImageIcon extends AccessibleContext
< prev index next >