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

Print this page

        

@@ -714,11 +714,11 @@
      * The unit increment is the value that is added or subtracted
      * when the user activates the unit increment area of the
      * scroll bar, generally through a mouse or keyboard gesture
      * that the scroll bar receives as an adjustment event.
      * The unit increment must be greater than zero.
-     * Attepts to set the unit increment to a value lower than 1
+     * Attempts to set the unit increment to a value lower than 1
      * will result in a value of 1 being set.
      * <p>
      * In some operating systems, this property
      * can be ignored by the underlying controls.
      *

@@ -792,11 +792,11 @@
      * The block increment is the value that is added or subtracted
      * when the user activates the block increment area of the
      * scroll bar, generally through a mouse or keyboard gesture
      * that the scroll bar receives as an adjustment event.
      * The block increment must be greater than zero.
-     * Attepts to set the block increment to a value lower than 1
+     * Attempts to set the block increment to a value lower than 1
      * will result in a value of 1 being set.
      *
      * @param        v  the amount by which to increment or decrement
      *                         the scroll bar's value
      * @see          java.awt.Scrollbar#getBlockIncrement