< prev index next >

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

Print this page

        

@@ -38,14 +38,14 @@
  * interactive lightweight components (ie it allows components
  * to be embedded into the View hierarchy).
  * <p>
  * The component is placed relative to the text baseline
  * according to the value returned by
- * <code>Component.getAlignmentY</code>.  For Swing components
+ * {@code Component.getAlignmentY}.  For Swing components
  * this value can be conveniently set using the method
- * <code>JComponent.setAlignmentY</code>.  For example, setting
- * a value of <code>0.75</code> will cause 75 percent of the
+ * {@code JComponent.setAlignmentY}.  For example, setting
+ * a value of {@code 0.75} will cause 75 percent of the
  * component to be above the baseline, and 25 percent of the
  * component to be below the baseline.
  * <p>
  * This class is implemented to do the extra work necessary to
  * work properly in the presence of multiple threads (i.e. from

@@ -235,11 +235,11 @@
      * parent is, giving the view access to things like
      * the hosting Container.  The superclass behavior is
      * executed, followed by a call to createComponent if
      * the parent view parameter is non-null and a component
      * has not yet been created. The embedded components parent
-     * is then set to the value returned by <code>getContainer</code>.
+     * is then set to the value returned by {@code getContainer}.
      * If the parent view parameter is null, this view is being
      * cleaned up, thus the component is removed from its parent.
      * <p>
      * The changing of the component hierarchy will
      * touch the component lock, which is the one thing

@@ -436,12 +436,12 @@
             }
         }
 
         /**
          * Shows or hides this component depending on the value of parameter
-         * <code>b</code>.
-         * @param b If <code>true</code>, shows this component;
+         * {@code b}.
+         * @param b If {@code true}, shows this component;
          * otherwise, hides this component.
          * @see #isVisible
          * @since 1.1
          */
         public void setVisible(boolean b) {
< prev index next >