diff -r bd380b80f9ea -r ef8a3a2a72f2 jdk/src/share/classes/javax/swing/text/JTextComponent.java --- a/jdk/src/share/classes/javax/swing/text/JTextComponent.java Tue Oct 29 16:35:20 2013 +0400 +++ b/jdk/src/share/classes/javax/swing/text/JTextComponent.java Tue Oct 29 17:01:06 2013 +0400 @@ -426,7 +426,7 @@ Document old = model; /* - * aquire a read lock on the old model to prevent notification of + * acquire a read lock on the old model to prevent notification of * mutations while we disconnecting the old model. */ try { @@ -1493,10 +1493,10 @@ } /** - * This is a conveniance method that is only useful for + * This is a convenience method that is only useful for * cut, copy and paste. If * an Action with the name name does not - * exist in the ActionMap, this will attemp to install a + * exist in the ActionMap, this will attempt to install a * TransferHandler and then use altAction. */ private void invokeAction(String name, Action altAction) { @@ -2908,7 +2908,7 @@ * Return 0 if the text is empty, or the caret position * if no selection. * - * @return the index into teh text of the end of the selection ≥ 0 + * @return the index into the text of the end of the selection ≥ 0 */ public int getSelectionEnd() { return JTextComponent.this.getSelectionEnd();