src/share/classes/java/awt/Container.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

@@ -83,11 +83,11 @@
  * @author      Arthur van Hoff
  * @author      Sami Shaio
  * @see       #add(java.awt.Component, int)
  * @see       #getComponent(int)
  * @see       LayoutManager
- * @since     JDK1.0
+ * @since     1.0
  */
 public class Container extends Component {
 
     private static final PlatformLogger log = PlatformLogger.getLogger("java.awt.Container");
     private static final PlatformLogger eventLog = PlatformLogger.getLogger("java.awt.event.Container");

@@ -300,11 +300,11 @@
      * <p>
      * Note: This method should be called under AWT tree lock.
      *
      * @return    the number of components in this panel.
      * @see       #getComponent
-     * @since     JDK1.1
+     * @since     1.1
      * @see Component#getTreeLock()
      */
     public int getComponentCount() {
         return countComponents();
     }

@@ -382,11 +382,11 @@
      * A <code>Frame</code> object, for example, has a top inset that
      * corresponds to the height of the frame's title bar.
      * @return    the insets of this container.
      * @see       Insets
      * @see       LayoutManager
-     * @since     JDK1.1
+     * @since     1.1
      */
     public Insets getInsets() {
         return insets();
     }
 

@@ -973,11 +973,11 @@
      * @see #addImpl
      * @see #invalidate
      * @see #validate
      * @see javax.swing.JComponent#revalidate()
      * @see       LayoutManager
-     * @since     JDK1.1
+     * @since     1.1
      */
     public void add(Component comp, Object constraints) {
         addImpl(comp, constraints, -1);
     }
 

@@ -1076,11 +1076,11 @@
      * @see       #add(Component, int)
      * @see       #add(Component, java.lang.Object)
      * @see #invalidate
      * @see       LayoutManager
      * @see       LayoutManager2
-     * @since     JDK1.1
+     * @since     1.1
      */
     protected void addImpl(Component comp, Object constraints, int index) {
         synchronized (getTreeLock()) {
             /* Check for correct arguments:  index in bounds,
              * comp cannot be one of this container's parents,

@@ -1200,11 +1200,11 @@
      *         range {@code [0, getComponentCount()-1]}
      * @see #add
      * @see #invalidate
      * @see #validate
      * @see #getComponentCount
-     * @since JDK1.1
+     * @since 1.1
      */
     public void remove(int index) {
         synchronized (getTreeLock()) {
             if (index < 0  || index >= component.size()) {
                 throw new ArrayIndexOutOfBoundsException(index);

@@ -1499,11 +1499,11 @@
      * should not call this method directly, but should invoke
      * the <code>validate</code> method instead.
      * @see LayoutManager#layoutContainer
      * @see #setLayout
      * @see #validate
-     * @since JDK1.1
+     * @since 1.1
      */
     public void doLayout() {
         layout();
     }
 

@@ -1747,11 +1747,11 @@
      * invalidates the component hierarchy.
      *
      * @param f The font to become this container's font.
      * @see Component#getFont
      * @see #invalidate
-     * @since JDK1.0
+     * @since 1.0
      */
     public void setFont(Font f) {
         boolean shouldinvalidate = false;
 
         Font oldfont = getFont();

@@ -1832,11 +1832,11 @@
      * @see       #getPreferredSize
      * @see       #getMaximumSize
      * @see       #getLayout
      * @see       LayoutManager#minimumLayoutSize(Container)
      * @see       Component#getMinimumSize
-     * @since     JDK1.1
+     * @since     1.1
      */
     public Dimension getMinimumSize() {
         return minimumSize();
     }
 

@@ -2537,11 +2537,11 @@
      * @return null if the component does not contain the position.
      * If there is no child component at the requested point and the
      * point is within the bounds of the container the container itself
      * is returned; otherwise the top-most child is returned.
      * @see Component#contains
-     * @since JDK1.1
+     * @since 1.1
      */
     public Component getComponentAt(int x, int y) {
         return locate(x, y);
     }
 

@@ -2583,11 +2583,11 @@
      * @param      p   the point.
      * @return     returns the component that contains the point,
      *                 or <code>null</code> if the component does
      *                 not contain the point.
      * @see        Component#contains
-     * @since      JDK1.1
+     * @since      1.1
      */
     public Component getComponentAt(Point p) {
         return getComponentAt(p.x, p.y);
     }
 

@@ -2835,11 +2835,11 @@
      * Checks if the component is contained in the component hierarchy of
      * this container.
      * @param c the component
      * @return     <code>true</code> if it is an ancestor;
      *             <code>false</code> otherwise.
-     * @since      JDK1.1
+     * @since      1.1
      */
     public boolean isAncestorOf(Component c) {
         Container p;
         if (c == null || ((p = c.getParent()) == null)) {
             return false;

@@ -3010,11 +3010,11 @@
      *
      * @param    out      a print stream
      * @param    indent   the number of spaces to indent
      * @throws   NullPointerException if {@code out} is {@code null}
      * @see      Component#list(java.io.PrintStream, int)
-     * @since    JDK1.0
+     * @since    1.0
      */
     public void list(PrintStream out, int indent) {
         super.list(out, indent);
         synchronized(getTreeLock()) {
             for (int i = 0; i < component.size(); i++) {

@@ -3037,11 +3037,11 @@
      *
      * @param    out      a print writer
      * @param    indent   the number of spaces to indent
      * @throws   NullPointerException if {@code out} is {@code null}
      * @see      Component#list(java.io.PrintWriter, int)
-     * @since    JDK1.1
+     * @since    1.1
      */
     public void list(PrintWriter out, int indent) {
         super.list(out, indent);
         synchronized(getTreeLock()) {
             for (int i = 0; i < component.size(); i++) {