< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java

Print this page

        

@@ -45,22 +45,22 @@
 /**
  * <p>
  * Basis of a text components look-and-feel.  This provides the
  * basic editor view and controller services that may be useful
  * when creating a look-and-feel for an extension of
- * <code>JTextComponent</code>.
+ * {@code JTextComponent}.
  * <p>
- * Most state is held in the associated <code>JTextComponent</code>
+ * Most state is held in the associated {@code JTextComponent}
  * as bound properties, and the UI installs default values for the
  * various properties.  This default will install something for
  * all of the properties.  Typically, a LAF implementation will
  * do more however.  At a minimum, a LAF would generally install
  * key bindings.
  * <p>
  * This class also provides some concurrency support if the
- * <code>Document</code> associated with the JTextComponent is a subclass of
- * <code>AbstractDocument</code>.  Access to the View (or View hierarchy) is
+ * {@code Document} associated with the JTextComponent is a subclass of
+ * {@code AbstractDocument}.  Access to the View (or View hierarchy) is
  * serialized between any thread mutating the model and the Swing
  * event thread (which is expected to render, do model/view coordinate
  * translation, etc).  <em>Any access to the root view should first
  * acquire a read-lock on the AbstractDocument and release that lock
  * in a finally block.</em>

@@ -92,11 +92,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 Timothy Prinzing
  * @author Shannon Hickey (drag and drop)
  */

@@ -160,12 +160,12 @@
      * keymap is not found, then DEFAULT_KEYMAP from JTextComponent is used.
      * <p>
      * The set of bindings used to create the keymap is fetched
      * from the UIManager using a key formed by combining the
      * {@link #getPropertyPrefix} method
-     * and the string <code>.keyBindings</code>.  The type is expected
-     * to be <code>JTextComponent.KeyBinding[]</code>.
+     * and the string {@code .keyBindings}.  The type is expected
+     * to be {@code JTextComponent.KeyBinding[]}.
      *
      * @return the keymap
      * @see #getKeymapName
      * @see javax.swing.text.JTextComponent
      */

@@ -575,12 +575,12 @@
             editor.setCursor(cursor);
         }
     }
 
     /**
-     * Returns the <code>TransferHandler</code> that will be installed if
-     * their isn't one installed on the <code>JTextComponent</code>.
+     * Returns the {@code TransferHandler} that will be installed if
+     * their isn't one installed on the {@code JTextComponent}.
      */
     TransferHandler getTransferHandler() {
         return defaultTransferHandler;
     }
 

@@ -2240,11 +2240,11 @@
         private int p0;
         private int p1;
 
         /**
          * Whether or not this is a drop using
-         * <code>DropMode.INSERT</code>.
+         * {@code DropMode.INSERT}.
          */
         private boolean modeBetween = false;
 
         /**
          * Whether or not this is a drop.

@@ -2449,11 +2449,11 @@
          * This method is called after data has been exported.  This method should remove
          * the data that was transfered if the action was MOVE.
          *
          * @param source The component that was the source of the data.
          * @param data   The data that was transferred or possibly null
-         *               if the action is <code>NONE</code>.
+         *               if the action is {@code NONE}.
          * @param action The actual action that was performed.
          */
         protected void exportDone(JComponent source, Transferable data, int action) {
             // only remove the text if shouldRemove has not been set to
             // false by importData and only if the action is a move
< prev index next >