|
Quick Lists
|
|
Bug ID:
|
4511093
|
|
Votes
|
0
|
|
Synopsis
|
Robot.mouseMove is not moving to right location on Windows2000.
|
|
Category
|
java:classes_awt
|
|
Reported Against
|
merlin-beta3
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4504963,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4504963
|
|
Submit Date
|
04-OCT-2001
|
|
Description
|
mouseMove method of Robot is not moving to right location on Windows2000.
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b81)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b81, mixed mode)
To reproduce :
1. Compile and execute the following code :
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TestGetScreenLoc extends JFrame{
JTextField tf;
Robot robo;
public static void main(String[] args) {
System.out.println("Hello World!");
new TestGetScreenLoc();
}
TestGetScreenLoc() {
super("TestGetScreenLoc");
setSize(200,200);
getContentPane().setLayout(new FlowLayout());
tf = new JTextField("Testing screen location.");
getContentPane().add(tf);
setVisible(true);
try {
robo = new Robot();
} catch (Exception e) {
System.out.println(e.toString());
}
Point pt = tf.getLocationOnScreen();
System.out.println("Location of JTextField is >> " + pt);
robo.mouseMove(pt.x, pt.y);
}
}
2. You will see that mouse doesn't move to respective location.
|
|
Work Around
|
N/A
|
|
Evaluation
|
A duplicate of 4504963
xxxxx@xxxxx 2001-10-04
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |