< prev index next >

src/java.desktop/share/classes/java/awt/event/TextEvent.java

Print this page

        

@@ -29,15 +29,15 @@
 
 /**
  * A semantic event which indicates that an object's text changed.
  * This high-level event is generated by an object (such as a TextComponent)
  * when its text changes. The event is passed to
- * every <code>TextListener</code> object which registered to receive such
- * events using the component's <code>addTextListener</code> method.
+ * every {@code TextListener} object which registered to receive such
+ * events using the component's {@code addTextListener} method.
  * <P>
- * The object that implements the <code>TextListener</code> interface gets
- * this <code>TextEvent</code> when the event occurs. The listener is
+ * The object that implements the {@code TextListener} interface gets
+ * this {@code TextEvent} when the event occurs. The listener is
  * spared the details of processing individual mouse movements and key strokes
  * Instead, it can process a "meaningful" (semantic) event like "text changed".
  * <p>
  * An unspecified behavior will be caused if the {@code id} parameter
  * of any particular {@code TextEvent} instance is not

@@ -72,21 +72,21 @@
      * JDK 1.1 serialVersionUID
      */
     private static final long serialVersionUID = 6269902291250941179L;
 
     /**
-     * Constructs a <code>TextEvent</code> object.
+     * Constructs a {@code TextEvent} object.
      * <p> This method throws an
-     * <code>IllegalArgumentException</code> if <code>source</code>
-     * is <code>null</code>.
+     * {@code IllegalArgumentException} if {@code source}
+     * is {@code null}.
      *
-     * @param source The (<code>TextComponent</code>) object that
+     * @param source The ({@code TextComponent}) object that
      *               originated the event
      * @param id     An integer that identifies the event type.
      *                     For information on allowable values, see
      *                     the class description for {@link TextEvent}
-     * @throws IllegalArgumentException if <code>source</code> is null
+     * @throws IllegalArgumentException if {@code source} is null
      * @see #getSource()
      * @see #getID()
      */
     public TextEvent(Object source, int id) {
         super(source, id);
< prev index next >