-
Bug
-
Resolution: Unresolved
-
P5
-
1.4.2
-
x86
-
windows_xp
Name: rmT116609 Date: 07/28/2004
FULL PRODUCT VERSION :
1.4.2_04 and 1.5.0-beta:
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Swing components do not work very well with the Windows Magnifier in "Follow Keyboard Focus" only mode. The Magnifier does not track when users are typing text. When the focus is in a swing text area in Windows, the Magnifier only keeps track of where the mouse pointer is. It does not track typing.
I made sure that the flag screen_magnifier_present property was set to true, but it had no effect on this problem.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1 - Run the text area provided.
2 - In Windows XP, go to "Start->All Programs->Accessories->Accessibility->Magnifier" to start the Magnifier.
3 - in the Magnifier Settings uncheck "Follow mouse cursor" and make sure "Follow keyboard focus" is checked
4 - type in the text area and note that the focus is not followed. Type enough text so that you are eventually typing below the area that the magnifier is showing.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect that focus will be followed to show what I am typing in the magnifier.
ACTUAL -
The top of the window is shown in the magnifier, but it does not track where the caret is.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class TestTextArea {
public TestTextArea()
{
JFrame frame = new JFrame("Text Area");
JTextArea textArea = new JTextArea();
textArea.setLineWrap(true);
textArea.getAccessibleContext().setAccessibleName("foo");
frame.getContentPane().add(textArea);
frame.getAccessibleContext().setAccessibleName("the frame");
frame.setSize(200,200);
frame.setLocation(300,300);
frame.setVisible(true);
}
public static void main(String[] args)
{
new TestTextArea();
}
}
---------- END SOURCE ----------
(Incident Review ID: 285715)
======================================================================
###@###.### 10/15/04 17:41 GMT
FULL PRODUCT VERSION :
1.4.2_04 and 1.5.0-beta:
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Swing components do not work very well with the Windows Magnifier in "Follow Keyboard Focus" only mode. The Magnifier does not track when users are typing text. When the focus is in a swing text area in Windows, the Magnifier only keeps track of where the mouse pointer is. It does not track typing.
I made sure that the flag screen_magnifier_present property was set to true, but it had no effect on this problem.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1 - Run the text area provided.
2 - In Windows XP, go to "Start->All Programs->Accessories->Accessibility->Magnifier" to start the Magnifier.
3 - in the Magnifier Settings uncheck "Follow mouse cursor" and make sure "Follow keyboard focus" is checked
4 - type in the text area and note that the focus is not followed. Type enough text so that you are eventually typing below the area that the magnifier is showing.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect that focus will be followed to show what I am typing in the magnifier.
ACTUAL -
The top of the window is shown in the magnifier, but it does not track where the caret is.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class TestTextArea {
public TestTextArea()
{
JFrame frame = new JFrame("Text Area");
JTextArea textArea = new JTextArea();
textArea.setLineWrap(true);
textArea.getAccessibleContext().setAccessibleName("foo");
frame.getContentPane().add(textArea);
frame.getAccessibleContext().setAccessibleName("the frame");
frame.setSize(200,200);
frame.setLocation(300,300);
frame.setVisible(true);
}
public static void main(String[] args)
{
new TestTextArea();
}
}
---------- END SOURCE ----------
(Incident Review ID: 285715)
======================================================================
###@###.### 10/15/04 17:41 GMT