-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0u4
-
other, x86
-
windows_xp
OPERATING SYSTEM(S)
Windows XP Professional x64 Edition for AMD64 Simplified Chinese (Build 5.2.3790)
FULL JDK VERSION(S):
JDK 1.5.0_04 for x86_64
DESCRIPTION:
- Exact steps to reproduce
1) Run the following case
2) Set focus to Button first, then move focus to TextArea component by press Ctrl+Tab key
3) Cursor in front of string in TextArea <--Problem, it should be follow after the string
- Minimal source code that demonstrates the problem
//The following simple code can recreate this defect.
import java.awt.*;
import java.awt.event.*;
public class CursorLocationTest {
private String str = "This is a test case.";
Frame frame = null;
Button btn = null;
TextArea tarea = null;
public CursorLocationTest() {
frame = new Frame(" Test case");
btn = new Button("test");
tarea = new TextArea(str);
frame.setLayout(new GridLayout(2, 1));
frame.setSize(166, 200);
frame.add(btn);
frame.add(tarea);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent event) {
System.exit(0);
}
});
frame.setVisible(true);
}
public static void main(String[] args) {
new CursorLocationTest();
}
}
Windows XP Professional x64 Edition for AMD64 Simplified Chinese (Build 5.2.3790)
FULL JDK VERSION(S):
JDK 1.5.0_04 for x86_64
DESCRIPTION:
- Exact steps to reproduce
1) Run the following case
2) Set focus to Button first, then move focus to TextArea component by press Ctrl+Tab key
3) Cursor in front of string in TextArea <--Problem, it should be follow after the string
- Minimal source code that demonstrates the problem
//The following simple code can recreate this defect.
import java.awt.*;
import java.awt.event.*;
public class CursorLocationTest {
private String str = "This is a test case.";
Frame frame = null;
Button btn = null;
TextArea tarea = null;
public CursorLocationTest() {
frame = new Frame(" Test case");
btn = new Button("test");
tarea = new TextArea(str);
frame.setLayout(new GridLayout(2, 1));
frame.setSize(166, 200);
frame.add(btn);
frame.add(tarea);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent event) {
System.exit(0);
}
});
frame.setVisible(true);
}
public static void main(String[] args) {
new CursorLocationTest();
}
}