【资料图】
1、publicclassBtnText1extendsJFrameimplementsMouseMotionListener不需要实现MouseMotionListener接口,你已经用了addMouseMotionListener方法MouseAdapter类已经是实现了MouseMotionListener接口的。
2、改成publicclassBtnText1extendsJFrame可以运行成功。
本文到此分享完毕,希望对大家有所帮助。
标签:
相关新闻
湖南衡阳:多彩大课间
近日,习近平总书记在深入推动黄河流域生态保护和高质量发展座谈会...