< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/nimbus/State.java

Print this page

        

@@ -132,18 +132,18 @@
      * by this class. <em>This is an extremely performance sensitive loop.</em>
      * Please take proper precautions to ensure that it executes quickly.</p>
      *
      * <p>Nimbus uses this method to help determine what state a JComponent is
      * in. For example, a custom State could exist for JProgressBar such that
-     * it would return <code>true</code> when the progress bar is indeterminate.
+     * it would return {@code true} when the progress bar is indeterminate.
      * Such an implementation of this method would simply be:</p>
      *
-     * <pre><code> return c.isIndeterminate();</code></pre>
+     * <pre>{@code return c.isIndeterminate();}</pre>
      *
      * @param c the JComponent to test. This will never be null.
-     * @return true if <code>c</code> is in the custom state represented by
-     *         this <code>State</code> instance
+     * @return true if {@code c} is in the custom state represented by
+     *         this {@code State} instance
      */
     protected abstract boolean isInState(T c);
 
     String getName() { return name; }
 
< prev index next >