< prev index next >

src/java.desktop/share/classes/javax/swing/JSeparator.java

Print this page

        

@@ -32,17 +32,17 @@
 import java.io.ObjectInputStream;
 import java.io.IOException;
 
 
 /**
- * <code>JSeparator</code> provides a general purpose component for
+ * {@code JSeparator} provides a general purpose component for
  * implementing divider lines - most commonly used as a divider
  * between menu items that breaks them up into logical groupings.
- * Instead of using <code>JSeparator</code> directly,
- * you can use the <code>JMenu</code> or <code>JPopupMenu</code>
- * <code>addSeparator</code> method to create and add a separator.
- * <code>JSeparator</code>s may also be used elsewhere in a GUI
+ * Instead of using {@code JSeparator} directly,
+ * you can use the {@code JMenu} or {@code JPopupMenu}
+ * {@code addSeparator} method to create and add a separator.
+ * {@code JSeparator}s may also be used elsewhere in a GUI
  * wherever a visual divider is useful.
  *
  * <p>
  *
  * For more information and examples see

@@ -59,11 +59,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}.
  *
  * @beaninfo
  *      attribute: isContainer false
  *    description: A divider between menu items.

@@ -92,15 +92,15 @@
     /**
      * Creates a new separator with the specified horizontal or
      * vertical orientation.
      *
      * @param orientation an integer specifying
-     *          <code>SwingConstants.HORIZONTAL</code> or
-     *          <code>SwingConstants.VERTICAL</code>
-     * @exception IllegalArgumentException if <code>orientation</code>
-     *          is neither <code>SwingConstants.HORIZONTAL</code> nor
-     *          <code>SwingConstants.VERTICAL</code>
+     *          {@code SwingConstants.HORIZONTAL} or
+     *          {@code SwingConstants.VERTICAL}
+     * @exception IllegalArgumentException if {@code orientation}
+     *          is neither {@code SwingConstants.HORIZONTAL} nor
+     *          {@code SwingConstants.VERTICAL}
      */
     public JSeparator( int orientation )
     {
         checkOrientation( orientation );
         this.orientation = orientation;

@@ -153,12 +153,12 @@
         return uiClassID;
     }
 
 
     /**
-     * See <code>readObject</code> and <code>writeObject</code> in
-     * <code>JComponent</code> for more
+     * See {@code readObject} and {@code writeObject} in
+     * {@code JComponent} for more
      * information about serialization in Swing.
      */
     private void writeObject(ObjectOutputStream s) throws IOException {
         s.defaultWriteObject();
         if (getUIClassID().equals(uiClassID)) {

@@ -172,13 +172,13 @@
 
     /**
      * Returns the orientation of this separator.
      *
      * @return   The value of the orientation property, one of the
-     *           following constants defined in <code>SwingConstants</code>:
-     *           <code>VERTICAL</code>, or
-     *           <code>HORIZONTAL</code>.
+     *           following constants defined in {@code SwingConstants}:
+     *           {@code VERTICAL}, or
+     *           {@code HORIZONTAL}.
      *
      * @see SwingConstants
      * @see #setOrientation
      */
     public int getOrientation() {

@@ -186,15 +186,15 @@
     }
 
     /**
      * Sets the orientation of the separator.
      * The default value of this property is HORIZONTAL.
-     * @param orientation  either <code>SwingConstants.HORIZONTAL</code>
-     *                  or <code>SwingConstants.VERTICAL</code>
-     * @exception IllegalArgumentException  if <code>orientation</code>
-     *          is neither <code>SwingConstants.HORIZONTAL</code>
-     *          nor <code>SwingConstants.VERTICAL</code>
+     * @param orientation  either {@code SwingConstants.HORIZONTAL}
+     *                  or {@code SwingConstants.VERTICAL}
+     * @exception IllegalArgumentException  if {@code orientation}
+     *          is neither {@code SwingConstants.HORIZONTAL}
+     *          nor {@code SwingConstants.VERTICAL}
      *
      * @see SwingConstants
      * @see #getOrientation
      * @beaninfo
      *        bound: true

@@ -228,18 +228,18 @@
         }
     }
 
 
     /**
-     * Returns a string representation of this <code>JSeparator</code>.
+     * Returns a string representation of this {@code JSeparator}.
      * This method
      * is intended to be used only for debugging purposes, and the
      * content and format of the returned string may vary between
      * implementations. The returned string may be empty but may not
-     * be <code>null</code>.
+     * be {@code null}.
      *
-     * @return  a string representation of this <code>JSeparator</code>
+     * @return  a string representation of this {@code JSeparator}
      */
     protected String paramString() {
         String orientationString = (orientation == HORIZONTAL ?
                                     "HORIZONTAL" : "VERTICAL");
 

@@ -267,20 +267,20 @@
         return accessibleContext;
     }
 
     /**
      * This class implements accessibility support for the
-     * <code>JSeparator</code> class.  It provides an implementation of the
+     * {@code JSeparator} class.  It provides an implementation of the
      * Java Accessibility API appropriate to separator user-interface elements.
      * <p>
      * <strong>Warning:</strong>
      * 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}.
      */
     @SuppressWarnings("serial")
     protected class AccessibleJSeparator extends AccessibleJComponent {
 
< prev index next >