首页>资讯 > >正文
当前播报:mouse event 模拟鼠标点击
2023-06-26 16:10:09来源:互联网


【资料图】

1、publicclassBtnText1extendsJFrameimplementsMouseMotionListener不需要实现MouseMotionListener接口,你已经用了addMouseMotionListener方法MouseAdapter类已经是实现了MouseMotionListener接口的。

2、改成publicclassBtnText1extendsJFrame可以运行成功。

本文到此分享完毕,希望对大家有所帮助。

标签:

相关新闻