< prev index next >

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

Print this page

        

@@ -40,17 +40,17 @@
 /**
  * Renders an item in a list.
  * <p>
  * <strong><a name="override">Implementation Note:</a></strong>
  * This class overrides
- * <code>invalidate</code>,
- * <code>validate</code>,
- * <code>revalidate</code>,
- * <code>repaint</code>,
- * <code>isOpaque</code>,
+ * {@code invalidate},
+ * {@code validate},
+ * {@code revalidate},
+ * {@code repaint},
+ * {@code isOpaque},
  * and
- * <code>firePropertyChange</code>
+ * {@code firePropertyChange}
  * solely to improve performance.
  * If not overridden, these frequently called methods would execute code paths
  * that are unnecessary for the default list cell renderer.
  * If you write your own renderer,
  * take care to weigh the benefits and

@@ -62,11 +62,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&trade;
- * 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 Philip Milne
  * @author Hans Muller
  * @since 1.2

@@ -75,13 +75,13 @@
 public class DefaultListCellRenderer extends JLabel
     implements ListCellRenderer<Object>, Serializable
 {
 
    /**
-    * An empty <code>Border</code>. This field might not be used. To change the
-    * <code>Border</code> used by this renderer override the
-    * <code>getListCellRendererComponent</code> method and set the border
+    * An empty {@code Border}. This field might not be used. To change the
+    * {@code Border} used by this renderer override the
+    * {@code getListCellRendererComponent} method and set the border
     * of the returned component directly.
     */
     private static final Border SAFE_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
     private static final Border DEFAULT_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
     /**

@@ -179,13 +179,13 @@
      * Overridden for performance reasons.
      * See the <a href="#override">Implementation Note</a>
      * for more information.
      *
      * @since 1.5
-     * @return <code>true</code> if the background is completely opaque
+     * @return {@code true} if the background is completely opaque
      *         and differs from the JList's background;
-     *         <code>false</code> otherwise
+     *         {@code false} otherwise
      */
     @Override
     public boolean isOpaque() {
         Color back = getBackground();
         Component p = getParent();

@@ -341,11 +341,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&trade;
-     * 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}.
      */
     @SuppressWarnings("serial") // Same-version serialization only
     public static class UIResource extends DefaultListCellRenderer
         implements javax.swing.plaf.UIResource
< prev index next >