< prev index next >

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

Print this page

        

@@ -34,11 +34,11 @@
 import java.io.ObjectInputStream;
 import java.io.IOException;
 
 
 /**
- * <code>JPanel</code> is a generic lightweight container.
+ * {@code JPanel} is a generic lightweight container.
  * For examples and task-oriented documentation for JPanel, see
  * <a
  href="http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html">How to Use Panels</a>,
  * a section in <em>The Java Tutorial</em>.
  * <p>

@@ -51,11 +51,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
  * description: A generic lightweight container.
  *

@@ -96,13 +96,13 @@
     public JPanel(LayoutManager layout) {
         this(layout, true);
     }
 
     /**
-     * Creates a new <code>JPanel</code> with <code>FlowLayout</code>
+     * Creates a new {@code JPanel} with {@code FlowLayout}
      * and the specified buffering strategy.
-     * If <code>isDoubleBuffered</code> is true, the <code>JPanel</code>
+     * If {@code isDoubleBuffered} is true, the {@code JPanel}
      * will use a double buffer.
      *
      * @param isDoubleBuffered  a boolean, true for double-buffering, which
      *        uses additional memory space to achieve fast, flicker-free
      *        updates

@@ -110,11 +110,11 @@
     public JPanel(boolean isDoubleBuffered) {
         this(new FlowLayout(), isDoubleBuffered);
     }
 
     /**
-     * Creates a new <code>JPanel</code> with a double buffer
+     * Creates a new {@code JPanel} with a double buffer
      * and a flow layout.
      */
     public JPanel() {
         this(true);
     }

@@ -190,11 +190,11 @@
     /**
      * Returns a string representation of this JPanel. 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 JPanel.
      */
     protected String paramString() {
         return super.paramString();

@@ -220,21 +220,21 @@
         return accessibleContext;
     }
 
     /**
      * This class implements accessibility support for the
-     * <code>JPanel</code> class.  It provides an implementation of the
+     * {@code JPanel} class.  It provides an implementation of the
      * Java Accessibility API appropriate to panel 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") // Same-version serialization only
     protected class AccessibleJPanel extends AccessibleJComponent {
 
< prev index next >