--- a/jdk/src/share/classes/javax/swing/text/DefaultFormatter.java Tue Oct 29 16:35:20 2013 +0400
+++ b/jdk/src/share/classes/javax/swing/text/DefaultFormatter.java Tue Oct 29 17:01:06 2013 +0400
@@ -34,7 +34,7 @@
import javax.swing.text.*;
/**
- * <code>DefaultFormatter</code> formats aribtrary objects. Formatting is done
+ * <code>DefaultFormatter</code> formats arbitrary objects. Formatting is done
* by invoking the <code>toString</code> method. In order to convert the
* value back to a String, your class must provide a constructor that
* takes a String argument. If no single argument constructor that takes a
@@ -137,7 +137,7 @@
* <code>JFormattedTextField</code>, typically when enter is pressed
* or focus leaves the <code>JFormattedTextField</code>.
*
- * @param commit Used to indicate when edits are commited back to the
+ * @param commit Used to indicate when edits are committed back to the
* JTextComponent
*/
public void setCommitsOnValidEdit(boolean commit) {
@@ -148,7 +148,7 @@
* Returns when edits are published back to the
* <code>JFormattedTextField</code>.
*
- * @return true if edits are commited after evey valid edit
+ * @return true if edits are committed after every valid edit
*/
public boolean getCommitsOnValidEdit() {
return commitOnEdit;
@@ -213,7 +213,7 @@
/**
* Returns that class that is used to create new Objects.
*
- * @return Class used to constuct return value from stringToValue
+ * @return Class used to construct return value from stringToValue
*/
public Class<?> getValueClass() {
return valueClass;
@@ -225,7 +225,7 @@
* takes a String argument. If <code>getValueClass</code>
* returns null, the Class of the current value in the
* <code>JFormattedTextField</code> will be used. If this is null, a
- * String will be returned. If the constructor thows an exception, a
+ * String will be returned. If the constructor throws an exception, a
* <code>ParseException</code> will be thrown. If there is no single
* argument String constructor, <code>string</code> will be returned.
*
@@ -500,7 +500,7 @@
/**
- * Finds the next navigatable character.
+ * Finds the next navigable character.
*/
int getNextVisualPositionFrom(JTextComponent text, int pos,
Position.Bias bias, int direction,