回答編集履歴
2
println
answer
CHANGED
@@ -29,7 +29,6 @@
|
|
29
29
|
switch (e.getKeyChar()) {
|
30
30
|
case 'a':
|
31
31
|
robot.mouseMove(x, y);
|
32
|
-
System.out.println(x);
|
33
32
|
break;
|
34
33
|
|
35
34
|
case 'b':
|
1
左上
answer
CHANGED
@@ -15,8 +15,8 @@
|
|
15
15
|
}
|
16
16
|
|
17
17
|
private Robot robot = new Robot();
|
18
|
-
private int x =
|
18
|
+
private int x = 50;
|
19
|
-
private int y =
|
19
|
+
private int y = 50;
|
20
20
|
private int offset = 120;
|
21
21
|
|
22
22
|
public Main() throws AWTException {
|