--- old/src/java.desktop/share/classes/java/awt/Container.java 2014-08-21 20:50:02.777413300 +0400 +++ new/src/java.desktop/share/classes/java/awt/Container.java 2014-08-21 20:50:02.581402100 +0400 @@ -547,8 +547,8 @@ } /** - * 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 @@ -1407,11 +1407,11 @@ 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); } @@ -2338,7 +2338,7 @@ } /** - * 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) { @@ -2887,7 +2887,7 @@ 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) { @@ -3673,7 +3673,7 @@ *