Browse Source

Improves IntegerInputValidator comments

Andreas T. Meyer-Berg 6 years ago
parent
commit
74bf0f84a7

+ 7 - 6
src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/view/IntegerInputValidator.java

@@ -5,15 +5,15 @@ import javax.swing.JComponent;
 import javax.swing.JTextField;
 
 /**
- * InputVerifier which validates if the JTextfield value is within the given min
- * and max bounds.
+ * InputVerifier which validates if the value of an JTextfield is within the
+ * given min and max bounds.
  *
  * @author Andreas T. Meyer-Berg
  */
 public class IntegerInputValidator extends InputVerifier {
 
 	/**
-	 * Mininum valid value
+	 * Minimum valid value
 	 */
 	private int min;
 
@@ -23,11 +23,12 @@ public class IntegerInputValidator extends InputVerifier {
 	private int max;
 
 	/**
-	 * Creates a new IntegerinputValidator which checks verifies that a
-	 * Textfield contains an integer in this specified range.
+	 * Creates a new IntegerinputValidator which verifies that an integer of the
+	 * JTextfieldis in this specified range.<br>
+	 * {@code true if x element of [min,max]}
 	 * 
 	 * @param minValue
-	 *            Smalles allowed value
+	 *            Smallest allowed value
 	 * @param maxValue
 	 *            Largest allowed value
 	 */