broud

利用机器人Robot休眠做了一个延迟方法

    public static void delay(int a) {
        try {
            Robot r = new Robot();
            r.delay(a);
            //r.delay(2000)  毫秒
        } catch (AWTException e) {
            e.printStackTrace();
        }
    }
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-02-25
  • 2022-12-23
  • 2021-12-10
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案