This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

bourne
bourne presents ...

2013/11/23

MouseTrap

Example of relocating the mouse position on screen (to center of scenario)

Uses the Robot class.

NOTE does not work on site.

Press the spacebar to toggle on/off.

2373 views / 771 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse demo with-source bourne

open in greenfoot
Your browser does not support the canvas tag.
I was wondering how to use Robot! I didn't really look at it, I just knew using Robot would let you move the mouse with code.
erdelferdelf

2013/11/23

downloaded and doesnt work for me nothing happens
bournebourne

2013/11/23

"Press the spacebar to toggle on/off" after hitting the Run button
erdelferdelf

2013/11/23

yeah, thx i can read, i did this
erdelferdelf

2013/11/23

oh forget it, i forgot that i restricted the access for java

Want to leave a comment? You must first log in.

Who likes this?

FlyingRabidUnicornPig