< prev index next >

src/java.desktop/share/classes/javax/swing/text/DefaultHighlighter.java

Print this page

        

@@ -329,11 +329,11 @@
         safeDamageRange(doc.createPosition(a0), doc.createPosition(a1));
     }
 
     /**
      * If true, highlights are drawn as the Views draw the text. That is
-     * the Views will call into <code>paintLayeredHighlight</code> which
+     * the Views will call into {@code paintLayeredHighlight} which
      * will result in a rectangle being drawn before the text is drawn
      * (if the offsets are in a highlighted region that is). For this to
      * work the painter supplied must be an instance of
      * LayeredHighlightPainter.
      * @param newValue the new value

@@ -374,11 +374,11 @@
      * a solid color.
      */
     public static class DefaultHighlightPainter extends LayeredHighlighter.LayerPainter {
 
         /**
-         * Constructs a new highlight painter. If <code>c</code> is null,
+         * Constructs a new highlight painter. If {@code c} is null,
          * the JTextComponent will be queried for its selection color.
          *
          * @param c the color for the highlight
          */
         public DefaultHighlightPainter(Color c) {

@@ -584,15 +584,15 @@
         int width;
         int height;
     }
 
     /**
-     * This class invokes <code>mapper.damageRange</code> in
+     * This class invokes {@code mapper.damageRange} in
      * EventDispatchThread. The only one instance per Highlighter
      * is cretaed. When a number of ranges should be damaged
      * it collects them into queue and damages
-     * them in consecutive order in <code>run</code>
+     * them in consecutive order in {@code run}
      * call.
      */
     class SafeDamager implements Runnable {
         private Vector<Position> p0 = new Vector<Position>(10);
         private Vector<Position> p1 = new Vector<Position>(10);
< prev index next >