< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthContext.java

Print this page

        

@@ -28,14 +28,14 @@
 import java.util.concurrent.ConcurrentLinkedQueue;
 import javax.swing.JComponent;
 
 /**
  * An immutable transient object containing contextual information about
- * a <code>Region</code>. A <code>SynthContext</code> should only be
+ * a {@code Region}. A {@code SynthContext} should only be
  * considered valid for the duration
  * of the method it is passed to. In other words you should not cache
- * a <code>SynthContext</code> that is passed to you and expect it to
+ * a {@code SynthContext} that is passed to you and expect it to
  * remain valid.
  *
  * @since 1.5
  * @author Scott Violet
  */

@@ -107,11 +107,11 @@
     public Region getRegion() {
         return region;
     }
 
     /**
-     * A convenience method for <code>getRegion().isSubregion()</code>.
+     * A convenience method for {@code getRegion().isSubregion()}.
      */
     boolean isSubregion() {
         return getRegion().isSubregion();
     }
 

@@ -132,14 +132,14 @@
         this.state = state;
     }
 
     /**
      * Returns the state of the widget, which is a bitmask of the
-     * values defined in <code>SynthConstants</code>. A region will at least
+     * values defined in {@code SynthConstants}. A region will at least
      * be in one of
-     * <code>ENABLED</code>, <code>MOUSE_OVER</code>, <code>PRESSED</code>
-     * or <code>DISABLED</code>.
+     * {@code ENABLED}, {@code MOUSE_OVER}, {@code PRESSED}
+     * or {@code DISABLED}.
      *
      * @see SynthConstants
      * @return State of Component
      */
     public int getComponentState() {
< prev index next >