【资料图】
1、publicclassBtnText1extendsJFrameimplementsMouseMotionListener不需要实现MouseMotionListener接口,你已经用了addMouseMotionListener方法MouseAdapter类已经是实现了MouseMotionListener接口的。
2、改成publicclassBtnText1extendsJFrame可以运行成功。
本文到此分享完毕,希望对大家有所帮助。
【资料图】
1、publicclassBtnText1extendsJFrameimplementsMouseMotionListener不需要实现MouseMotionListener接口,你已经用了addMouseMotionListener方法MouseAdapter类已经是实现了MouseMotionListener接口的。
2、改成publicclassBtnText1extendsJFrame可以运行成功。
本文到此分享完毕,希望对大家有所帮助。