Robot robot=new Robot();  好像应该使用构造函数  Robot(GraphicsDevice screen) 
具体怎么弄我也记不太清楚了。
robot.delay(1000);