7121409: Two conformance tests for AccessibleText.getCharacterBounds(int i) fail
authoralexsch
Fri, 09 Aug 2013 14:16:24 +0400
changeset 19360 0fd3028166c5
parent 19359 f6c72fbf9e7e
child 19361 424d84a2276f
7121409: Two conformance tests for AccessibleText.getCharacterBounds(int i) fail Reviewed-by: serb
jdk/src/share/classes/javax/swing/JLabel.java
--- a/jdk/src/share/classes/javax/swing/JLabel.java	Fri Aug 09 05:20:27 2013 +0400
+++ b/jdk/src/share/classes/javax/swing/JLabel.java	Fri Aug 09 14:16:24 2013 +0400
@@ -1185,14 +1185,13 @@
         }
 
         /**
-         * Determine the bounding box of the character at the given
-         * index into the string.  The bounds are returned in local
-         * coordinates.  If the index is invalid an empty rectangle is
-         * returned.
+         * Returns the bounding box of the character at the given
+         * index in the string.  The bounds are returned in local
+         * coordinates. If the index is invalid, <code>null</code> is returned.
          *
          * @param i the index into the String
-         * @return the screen coordinates of the character's the bounding box,
-         * if index is invalid returns an empty rectangle.
+         * @return the screen coordinates of the character's bounding box.
+         * If the index is invalid, <code>null</code> is returned.
          * @since 1.3
          */
         public Rectangle getCharacterBounds(int i) {