< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalButtonUI.java

Print this page

        

@@ -43,11 +43,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 Tom Santos
  */
 @SuppressWarnings("serial") // Same-version serialization only

@@ -150,15 +150,15 @@
     // ********************************
     //          Paint
     // ********************************
     /**
      * If necessary paints the background of the component, then
-     * invokes <code>paint</code>.
+     * invokes {@code paint}.
      *
      * @param g Graphics to paint to
      * @param c JComponent painting on
-     * @throws NullPointerException if <code>g</code> or <code>c</code> is
+     * @throws NullPointerException if {@code g} or {@code c} is
      *         null
      * @see javax.swing.plaf.ComponentUI#update
      * @see javax.swing.plaf.ComponentUI#paint
      * @since 1.5
      */
< prev index next >