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

Print this page

        

@@ -545,12 +545,12 @@
             comp.checkGD(thisGC.getDevice().getIDstring());
         }
     }
 
     /**
-     * Removes component comp from this container without making unneccessary changes
-     * and generating unneccessary events. This function intended to perform optimized
+     * Removes component comp from this container without making unnecessary changes
+     * and generating unnecessary events. This function intended to perform optimized
      * remove, for example, if newParent and current parent are the same it just changes
      * index without calling removeNotify.
      * Note: Should be called while holding treeLock
      * Returns whether removeNotify was invoked
      * @since: 1.5

@@ -1405,15 +1405,15 @@
     void adjustDescendants(int num) {
         if (num == 0)
             return;
 
         descendantsCount += num;
-        adjustDecendantsOnParent(num);
+        adjustDescendantsOnParent(num);
     }
 
     // Should only be called while holding tree lock
-    void adjustDecendantsOnParent(int num) {
+    void adjustDescendantsOnParent(int num) {
         if (parent != null) {
             parent.adjustDescendants(num);
         }
     }
 

@@ -2336,11 +2336,11 @@
     void dispatchEventToSelf(AWTEvent e) {
         super.dispatchEventImpl(e);
     }
 
     /**
-     * Fetchs the top-most (deepest) lightweight component that is interested
+     * Fetches the top-most (deepest) lightweight component that is interested
      * in receiving mouse events.
      */
     Component getMouseEventTarget(int x, int y, boolean includeSelf) {
         return getMouseEventTarget(x, y, includeSelf,
                                    MouseEventTargetFilter.FILTER,

@@ -2885,11 +2885,11 @@
         // Event dispatch thread of this app context will be sleeping until
         // we wake it by any event from hideAndDisposeHandler().
         modalAppContext = AppContext.getAppContext();
 
         // keep the KeyEvents from being dispatched
-        // until the focus has been transfered
+        // until the focus has been transferred
         long time = Toolkit.getEventQueue().getMostRecentKeyEventTime();
         Component predictedFocusOwner = (Component.isInstanceOf(this, "javax.swing.JInternalFrame")) ? ((javax.swing.JInternalFrame)(this)).getMostRecentFocusOwner() : null;
         if (predictedFocusOwner != null) {
             KeyboardFocusManager.getCurrentKeyboardFocusManager().
                 enqueueKeyEvents(time, predictedFocusOwner);

@@ -3671,11 +3671,11 @@
      * Serializes this <code>Container</code> to the specified
      * <code>ObjectOutputStream</code>.
      * <ul>
      *    <li>Writes default serializable fields to the stream.</li>
      *    <li>Writes a list of serializable ContainerListener(s) as optional
-     *        data. The non-serializable ContainerListner(s) are detected and
+     *        data. The non-serializable ContainerListener(s) are detected and
      *        no attempt is made to serialize them.</li>
      *    <li>Write this Container's FocusTraversalPolicy if and only if it
      *        is Serializable; otherwise, <code>null</code> is written.</li>
      * </ul>
      *