-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0
-
sparc
-
solaris_2.5.1
Name: aaC67449 Date: 08/31/98
JTextComponent.AccessibleJTextComponent.getBeforeIndex(int part, int index) works incorrectly, when part parameter is AccessibleText.WORD.
It returns a space (" ") instead of correct word.
See example:
---------------- Example -----------------
import com.sun.java.swing.*;
import com.sun.java.accessibility.*;
public class Test {
public static void main(String argv[]) {
JTextField o=new JTextField("Test1 test2.");
AccessibleText c = o.getAccessibleContext().getAccessibleText();
if (!c.getBeforeIndex(AccessibleText.WORD,7).equals("Test1"))
System.out.println("Failed. Method returns:\""+c.getBeforeIndex(AccessibleText.WORD,7)+"\"");
else
System.out.println("Passed");
}
}
----------- output ----------------
Enabling platform fonts
Failed. Method returns:" "
======================================================================
- duplicates
-
JDK-4170173 JTextComponent.AccessibleJTextComponent.getAfterIndex(...) works incorrectly.
- Closed
- relates to
-
JDK-4256289 JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY value was changed.
- Closed
-
JDK-4256660 TextComponent.AccessibleAWTTextComponent.getAfterIndex(...) works incorrectly.
- Closed